Author: dgregor
Date: Fri Sep  9 18:34:14 2011
New Revision: 139436

URL: http://llvm.org/viewvc/llvm-project?rev=139436&view=rev
Log:
The translation unit is never deserialized

Modified:
    cfe/trunk/tools/libclang/CIndex.cpp

Modified: cfe/trunk/tools/libclang/CIndex.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/libclang/CIndex.cpp?rev=139436&r1=139435&r2=139436&view=diff
==============================================================================
--- cfe/trunk/tools/libclang/CIndex.cpp (original)
+++ cfe/trunk/tools/libclang/CIndex.cpp Fri Sep  9 18:34:14 2011
@@ -375,7 +375,7 @@
   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())


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to