]> granicus.if.org Git - clang/commitdiff
Fixes a breakage in dejagnu++ test suite where it included
authorFariborz Jahanian <fjahanian@apple.com>
Sat, 5 Jan 2013 21:54:55 +0000 (21:54 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Sat, 5 Jan 2013 21:54:55 +0000 (21:54 +0000)
<objc/Protocol.h>. Caused by my recent changes for
various builtin declarations of objc_msgSendSuper
variety. // rdar://12489098

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171638 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp

index 3bbb9a4cfdf2cedc6b8421992822dd427d1301d8..84b0d3f36bffe7f08e21a96a3a43e9c74120d105 100644 (file)
@@ -6273,6 +6273,7 @@ bool Sema::CheckFunctionDeclaration(Scope *S, FunctionDecl *NewFD,
     // declaration against the expected type for the builtin. 
     if (unsigned BuiltinID = NewFD->getBuiltinID()) {
       ASTContext::GetBuiltinTypeError Error;
+      LookupPredefedObjCSuperType(*this, S, NewFD->getIdentifier());
       QualType T = Context.GetBuiltinType(BuiltinID, Error);
       if (!T.isNull() && !Context.hasSameType(T, NewFD->getType())) {
         // The type of this function differs from the type of the builtin,