[PATCH] D25845: [CUDA] Ignore implicit target attributes during function template instantiation.
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 11 07:43:05 PDT 2019
RKSimon added inline comments.
Herald added subscribers: llvm-commits, sanjoy.google, bixia.
Herald added a project: LLVM.
================
Comment at: cfe/trunk/lib/Sema/SemaDecl.cpp:8416
+ // in the CheckFunctionTemplateSpecialization() call below.
+ if (getLangOpts().CUDA & !isFunctionTemplateSpecialization)
+ maybeAddCUDAHostDeviceAttrs(NewFD, Previous);
----------------
@tra Sorry for touching such an old ticket - but cppcheck is warning that we are using a boolean result in a bitwise expression - I'm assuming this should be:
```
if (getLangOpts().CUDA && !isFunctionTemplateSpecialization)
```
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D25845/new/
https://reviews.llvm.org/D25845
More information about the llvm-commits
mailing list