aboutsummaryrefslogtreecommitdiff
path: root/clang/lib
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2013-01-05 21:54:55 +0000
committerFariborz Jahanian <fjahanian@apple.com>2013-01-05 21:54:55 +0000
commitfeb9ae59d2f94b06897bb6f39f90f2486698523e (patch)
treefed57979aec41c5503860d4ba6f02497cd9b9600 /clang/lib
parent6e63ed0b371d00a43d62f5834249cbfb0a02a577 (diff)
downloadllvm-feb9ae59d2f94b06897bb6f39f90f2486698523e.zip
llvm-feb9ae59d2f94b06897bb6f39f90f2486698523e.tar.gz
llvm-feb9ae59d2f94b06897bb6f39f90f2486698523e.tar.bz2
Fixes a breakage in dejagnu++ test suite where it included
<objc/Protocol.h>. Caused by my recent changes for various builtin declarations of objc_msgSendSuper variety. // rdar://12489098 llvm-svn: 171638
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 3bbb9a4..84b0d3f 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -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,