[all-commits] [llvm/llvm-project] c49142: Fix truncated __OPENMP_NVPTX__ preprocessor condition
Ryan Burns via All-commits
all-commits at lists.llvm.org
Tue Aug 15 14:12:57 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c49142e4f5c8645a4d741d233f0cb55ef1ef87a2
https://github.com/llvm/llvm-project/commit/c49142e4f5c8645a4d741d233f0cb55ef1ef87a2
Author: Ryan Burns <rtburns at protonmail.com>
Date: 2023-08-15 (Tue, 15 Aug 2023)
Changed paths:
M clang/lib/Headers/__clang_cuda_math.h
Log Message:
-----------
Fix truncated __OPENMP_NVPTX__ preprocessor condition
I don't have a test case for this but noticed this warning when including system headers with `-I` rather than `-isystem`.
```
In file included from <built-in>:1:
In file included from /nix/store/jq6bpm0xmhnbffhs5rkxq4n88g5xi2zg-clang-wrapper-11.0.1/resource-root/include/__clang_cuda_runtime_wrapper.h:157:
/nix/store/jq6bpm0xmhnbffhs5rkxq4n88g5xi2zg-clang-wrapper-11.0.1/resource-root/include/__clang_cuda_math.h:39:25: warning: extra tokens at end of #ifdef directive [-Wextra-tokens]
^
```
Reviewed By: tra
Differential Revision: https://reviews.llvm.org/D95299
More information about the All-commits
mailing list