aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/DeclPrinter.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
commit321c22f1c4271c3d9a3d4d3fc18847f948ab595b (patch)
tree293c5da5b500bcf3bfcda607fdb3dcb36bc377f1 /lib/AST/DeclPrinter.cpp
parentf74a419b7219d050e1e40ff920d30832e903e5a8 (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/DeclPrinter.cpp')
-rw-r--r--lib/AST/DeclPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/DeclPrinter.cpp b/lib/AST/DeclPrinter.cpp
index 199ed356d6..645133b4da 100644
--- a/lib/AST/DeclPrinter.cpp
+++ b/lib/AST/DeclPrinter.cpp
@@ -624,7 +624,7 @@ void DeclPrinter::VisitObjCClassDecl(ObjCClassDecl *D) {
for (ObjCClassDecl::iterator I = D->begin(), E = D->end();
I != E; ++I) {
if (I != D->begin()) Out << ", ";
- Out << (*I)->getNameAsString();
+ Out << I->getInterface()->getNameAsString();
}
}