summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDeclAttr.cpp
diff options
context:
space:
mode:
authorCharles Davis <cdavis@mines.edu>2010-02-05 17:53:51 +0000
committerCharles Davis <cdavis@mines.edu>2010-02-05 17:53:51 +0000
commite4e604b5d6658664c26e56a28835fbf8486efa29 (patch)
tree46e8b4de8f7f9b9f82267b68f99a65dc2f0a7ece /clang/lib/Sema/SemaDeclAttr.cpp
parent363589bded7dbabe6d6e987a8d371b35b467d1a0 (diff)
downloadbcm5719-llvm-e4e604b5d6658664c26e56a28835fbf8486efa29.tar.gz
bcm5719-llvm-e4e604b5d6658664c26e56a28835fbf8486efa29.zip
Testing, 1, 2, 3...
Also make the comments I added in r95291 consistent. llvm-svn: 95394
Diffstat (limited to 'clang/lib/Sema/SemaDeclAttr.cpp')
-rw-r--r--clang/lib/Sema/SemaDeclAttr.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDeclAttr.cpp b/clang/lib/Sema/SemaDeclAttr.cpp
index 5e7788ef40f..681a3b7813a 100644
--- a/clang/lib/Sema/SemaDeclAttr.cpp
+++ b/clang/lib/Sema/SemaDeclAttr.cpp
@@ -987,7 +987,8 @@ static void HandleStdCallAttr(Decl *d, const AttributeList &Attr, Sema &S) {
// Attribute can be applied only to functions.
// If we try to apply it to a function pointer, don't warn, but don't
- // do anything, either.
+ // do anything, either. All the function-pointer stuff is handled in
+ // SemaType.cpp.
ValueDecl *VD = dyn_cast<ValueDecl>(d);
if (VD && VD->getType()->isFunctionPointerType())
return;
@@ -1031,7 +1032,8 @@ static void HandleFastCallAttr(Decl *d, const AttributeList &Attr, Sema &S) {
}
// If we try to apply it to a function pointer, don't warn, but don't
- // do anything, either.
+ // do anything, either. All the function-pointer stuff is handled in
+ // SemaType.cpp.
ValueDecl *VD = dyn_cast<ValueDecl>(d);
if (VD && VD->getType()->isFunctionPointerType())
return;
OpenPOWER on IntegriCloud