The translation unit is never deserialized

llvm-svn: 139436
This commit is contained in:
Douglas Gregor 2011-09-09 23:34:14 +00:00
parent 78d0638b7d
commit 1bbf030b8e
1 changed files with 1 additions and 1 deletions

View 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())