[PATCH] D25845: [CUDA] Ignore implicit target attributes during function template instantiation.

Artem Belevich via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 25 16:45:42 PDT 2016


tra updated this revision to Diff 75812.
tra added a comment.

- Instead of relying on the first attribute we find, check all matching ones.
- Specializations inherit their target attributes from their base template only. Their effective target always matches that of the template and is no longer affected by whether specialization differens from template in its constexpr-ness.


https://reviews.llvm.org/D25845

Files:
  include/clang/Sema/Sema.h
  lib/Sema/SemaCUDA.cpp
  lib/Sema/SemaDecl.cpp
  lib/Sema/SemaTemplate.cpp
  test/SemaCUDA/function-template-overload.cu

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25845.75812.patch
Type: text/x-patch
Size: 11782 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161025/f9ab25b3/attachment.bin>


More information about the cfe-commits mailing list