summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/DeclBase.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-11-18 00:28:11 +0000
committerTed Kremenek <kremenek@apple.com>2009-11-18 00:28:11 +0000
commit9b124e10a47bd3b54cfa20a2f75152011500c6b6 (patch)
tree7d8ab919bd9b4e266da035779dbddc1a32f97bd8 /clang/lib/AST/DeclBase.cpp
parenta3329fa05e2b32e40e956301748c0aaa89cad0c6 (diff)
downloadbcm5719-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.cpp2
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).
OpenPOWER on IntegriCloud