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 | 321c22f1c4271c3d9a3d4d3fc18847f948ab595b (patch) | |
tree | 293c5da5b500bcf3bfcda607fdb3dcb36bc377f1 /lib/AST/DeclBase.cpp | |
parent | f74a419b7219d050e1e40ff920d30832e903e5a8 (diff) |
Add SourceLocations to ObjCClassDecl for the class identifiers referenced by @class.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89170 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/DeclBase.cpp')
-rw-r--r-- | lib/AST/DeclBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/DeclBase.cpp b/lib/AST/DeclBase.cpp index c3c506e5ba..abcffed405 100644 --- a/lib/AST/DeclBase.cpp +++ b/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). |