diff options
author | Jon Chesterfield <jonathanchesterfield@gmail.com> | 2021-08-05 18:46:57 +0100 |
---|---|---|
committer | Jon Chesterfield <jonathanchesterfield@gmail.com> | 2021-08-05 18:46:57 +0100 |
commit | 509854b69cea0c9261ac21ceb22012a53e7a800b (patch) | |
tree | 8a2b1ea99ed316beea2f28f24e60b46b67415ad9 /llvm/tools/llvm-diff/lib/DiffLog.h | |
parent | c0586ff05dd08e4cbfc6fb7881274d8d89913463 (diff) | |
download | llvm-509854b69cea0c9261ac21ceb22012a53e7a800b.zip llvm-509854b69cea0c9261ac21ceb22012a53e7a800b.tar.gz llvm-509854b69cea0c9261ac21ceb22012a53e7a800b.tar.bz2 |
[clang] Replace asm with __asm__ in cuda header
Asm is a gnu extension for C, so at present -fopenmp -std=c99
and similar fail to compile on nvptx, bug 51344
Changing to `__asm__` or `__asm` works for openmp, all three appear to work
for cuda. Suggesting `__asm__` here as `__asm` is used by MSVC with different
syntax, so this should make for better error diagnostics if the header is
passed to a compiler other than clang.
Reviewed By: tra, emankov
Differential Revision: https://reviews.llvm.org/D107492
Diffstat (limited to 'llvm/tools/llvm-diff/lib/DiffLog.h')
0 files changed, 0 insertions, 0 deletions