aboutsummaryrefslogtreecommitdiff
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
commitf1e57ada1f48d70b9bb9b2585be1644baf534907 (patch)
tree5045a3a11a8e57c4579fea99dc42d8dc2d1751b0
parent027627115ca1c486e420db7cd8439f25531135bb (diff)
Testing, 1, 2, 3...
Also make the comments I added in r95291 consistent. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95394 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Sema/SemaDeclAttr.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp
index 5e7788ef40..681a3b7813 100644
--- a/lib/Sema/SemaDeclAttr.cpp
+++ b/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;