forked from OSchip/llvm-project
Testing, 1, 2, 3...
Also make the comments I added in r95291 consistent. llvm-svn: 95394
This commit is contained in:
parent
363589bded
commit
e4e604b5d6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue