Fix truncated __OPENMP_NVPTX__ preprocessor condition
authorRyan Burns <rtburns@protonmail.com>
Tue, 15 Aug 2023 21:11:58 +0000 (14:11 -0700)
committerTobias Hieta <tobias@hieta.se>
Wed, 16 Aug 2023 06:18:26 +0000 (08:18 +0200)
commitf36309a39b28ecfc515a9e2b90ac6a40ece264ad
tree70ebc9384416877c93c0db240fb67ffed8d7d615
parent9e87433217bd7cff6034a5a2672490e70c08bf7f
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

(cherry picked from commit c49142e4f5c8645a4d741d233f0cb55ef1ef87a2)
clang/lib/Headers/__clang_cuda_math.h