This revision was automatically updated to reflect the committed changes.
Closed by commit rL281406: [CUDA] Do not merge CUDA target attributes.
(authored by tra).
Changed prior to commit:
https://reviews.llvm.org/D24522?vs=71244&id=71249#toc
Repository:
rL LLVM
https://reviews.llvm.org/D24
tra updated this revision to Diff 71244.
tra marked an inline comment as done.
tra added a comment.
Removed REQUIRED lines.
https://reviews.llvm.org/D24522
Files:
lib/Sema/SemaDecl.cpp
test/SemaCUDA/function-overload.cu
test/SemaCUDA/target_attr_inheritance.cu
Index: test/SemaCUDA/target
jlebar accepted this revision.
jlebar added a comment.
This revision is now accepted and ready to land.
Yay, this is great.
Comment at: test/SemaCUDA/target_attr_inheritance.cu:4
@@ +3,3 @@
+// REQUIRES: x86-registered-target
+// REQUIRES: nvptx-registered-target
+
-
tra created this revision.
tra added a reviewer: jlebar.
tra added a subscriber: cfe-commits.
Herald added a subscriber: jlebar.
CUDA target attributes are used for function overloading and must not be merged.
This fixes a bug where attributes were inherited during function template
specializati