projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36b525f
)
Adding a FIXME to the code, based on a discussion in IRC; NFC.
author
Aaron Ballman
<aaron@aaronballman.com>
Thu, 4 Dec 2014 22:45:31 +0000
(22:45 +0000)
committer
Aaron Ballman
<aaron@aaronballman.com>
Thu, 4 Dec 2014 22:45:31 +0000
(22:45 +0000)
llvm-svn: 223403
clang/lib/Sema/SemaDeclAttr.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaDeclAttr.cpp
b/clang/lib/Sema/SemaDeclAttr.cpp
index
d945d63
..
e5eb61c
100644
(file)
--- a/
clang/lib/Sema/SemaDeclAttr.cpp
+++ b/
clang/lib/Sema/SemaDeclAttr.cpp
@@
-4755,6
+4755,10
@@
void Sema::ProcessDeclAttributeList(Scope *S, Decl *D,
return;
}
+ // FIXME: We should be able to handle this in TableGen as well. It would be
+ // good to have a way to specify "these attributes must appear as a group",
+ // for these. Additionally, it would be good to have a way to specify "these
+ // attribute must never appear as a group" for attributes like cold and hot.
if (!D->hasAttr<OpenCLKernelAttr>()) {
// These attributes cannot be applied to a non-kernel function.
if (Attr *A = D->getAttr<ReqdWorkGroupSizeAttr>()) {