From: Douglas Gregor Date: Fri, 9 Sep 2011 23:34:14 +0000 (+0000) Subject: The translation unit is never deserialized X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=35120c628595ecd05f9e82faa6a210837b48b236;p=clang The translation unit is never deserialized git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139436 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp index 7f06a57feb..fcd6459d4f 100644 --- a/tools/libclang/CIndex.cpp +++ b/tools/libclang/CIndex.cpp @@ -375,7 +375,7 @@ bool CursorVisitor::Visit(CXCursor Cursor, bool CheckedRegionOfInterest) { if (clang_isDeclaration(Cursor.kind)) { Decl *D = getCursorDecl(Cursor); assert(D && "Invalid declaration cursor"); - if (D->getPCHLevel() > MaxPCHLevel && !isa(D)) + if (D->getPCHLevel() > MaxPCHLevel) return false; if (D->isImplicit())