From: Charles Davis Date: Fri, 5 Feb 2010 17:53:51 +0000 (+0000) Subject: Testing, 1, 2, 3... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1e57ada1f48d70b9bb9b2585be1644baf534907;p=clang 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 --- 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(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(d); if (VD && VD->getType()->isFunctionPointerType()) return;