diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-11-18 00:28:11 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-11-18 00:28:11 +0000 |
commit | 9b124e10a47bd3b54cfa20a2f75152011500c6b6 (patch) | |
tree | 7d8ab919bd9b4e266da035779dbddc1a32f97bd8 /clang/lib/AST/DeclBase.cpp | |
parent | a3329fa05e2b32e40e956301748c0aaa89cad0c6 (diff) | |
download | bcm5719-llvm-9b124e10a47bd3b54cfa20a2f75152011500c6b6.tar.gz bcm5719-llvm-9b124e10a47bd3b54cfa20a2f75152011500c6b6.zip |
Add SourceLocations to ObjCClassDecl for the class identifiers referenced by @class.
llvm-svn: 89170
Diffstat (limited to 'clang/lib/AST/DeclBase.cpp')
-rw-r--r-- | clang/lib/AST/DeclBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/DeclBase.cpp b/clang/lib/AST/DeclBase.cpp index c3c506e5ba1..abcffed4050 100644 --- a/clang/lib/AST/DeclBase.cpp +++ b/clang/lib/AST/DeclBase.cpp @@ -678,7 +678,7 @@ void DeclContext::buildLookup(DeclContext *DCtx) { if (ObjCClassDecl *Class = dyn_cast<ObjCClassDecl>(*D)) for (ObjCClassDecl::iterator I = Class->begin(), IEnd = Class->end(); I != IEnd; ++I) - makeDeclVisibleInContextImpl(*I); + makeDeclVisibleInContextImpl(I->getInterface()); // If this declaration is itself a transparent declaration context, // add its members (recursively). |