]> granicus.if.org Git - clang/commitdiff
The translation unit is never deserialized
authorDouglas Gregor <dgregor@apple.com>
Fri, 9 Sep 2011 23:34:14 +0000 (23:34 +0000)
committerDouglas Gregor <dgregor@apple.com>
Fri, 9 Sep 2011 23:34:14 +0000 (23:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139436 91177308-0d34-0410-b5e6-96231b3b80d8

tools/libclang/CIndex.cpp

index 7f06a57feb7528cb08e583bd8c0ce9474242f5eb..fcd6459d4f1de57de5613fb2635b21fea4fdde40 100644 (file)
@@ -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<TranslationUnitDecl>(D))
+    if (D->getPCHLevel() > MaxPCHLevel)
       return false;
 
     if (D->isImplicit())