From 1bbf030b8e927c62678d62097d8bd652809a1e2d Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Fri, 9 Sep 2011 23:34:14 +0000 Subject: [PATCH] The translation unit is never deserialized llvm-svn: 139436 --- clang/tools/libclang/CIndex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index 7f06a57feb75..fcd6459d4f1d 100644 --- a/clang/tools/libclang/CIndex.cpp +++ b/clang/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())