[cfe-commits] r139436 - /cfe/trunk/tools/libclang/CIndex.cpp
Douglas Gregor
dgregor at apple.com
Fri Sep 9 16:34:15 PDT 2011
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())
More information about the cfe-commits
mailing list