diff options
Diffstat (limited to 'clang/tools/libclang/IndexingContext.cpp')
-rw-r--r-- | clang/tools/libclang/IndexingContext.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/tools/libclang/IndexingContext.cpp b/clang/tools/libclang/IndexingContext.cpp index 812669397d4..a2480ba092c 100644 --- a/clang/tools/libclang/IndexingContext.cpp +++ b/clang/tools/libclang/IndexingContext.cpp @@ -300,9 +300,8 @@ bool IndexingContext::handleTypedefName(const TypedefNameDecl *D) { } bool IndexingContext::handleObjCClass(const ObjCClassDecl *D) { - const ObjCClassDecl::ObjCClassRef *Ref = D->getForwardDecl(); - ObjCInterfaceDecl *IFaceD = Ref->getInterface(); - SourceLocation Loc = Ref->getLocation(); + ObjCInterfaceDecl *IFaceD = D->getForwardInterfaceDecl(); + SourceLocation Loc = D->getNameLoc(); bool isRedeclaration = IFaceD->getLocation() != Loc; // For @class forward declarations, suppress them the same way as references. |