forked from OSchip/llvm-project
The translation unit is never deserialized
llvm-svn: 139436
This commit is contained in:
parent
78d0638b7d
commit
1bbf030b8e
|
@ -375,7 +375,7 @@ bool CursorVisitor::Visit(CXCursor Cursor, bool CheckedRegionOfInterest) {
|
||||||
if (clang_isDeclaration(Cursor.kind)) {
|
if (clang_isDeclaration(Cursor.kind)) {
|
||||||
Decl *D = getCursorDecl(Cursor);
|
Decl *D = getCursorDecl(Cursor);
|
||||||
assert(D && "Invalid declaration cursor");
|
assert(D && "Invalid declaration cursor");
|
||||||
if (D->getPCHLevel() > MaxPCHLevel && !isa<TranslationUnitDecl>(D))
|
if (D->getPCHLevel() > MaxPCHLevel)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (D->isImplicit())
|
if (D->isImplicit())
|
||||||
|
|
Loading…
Reference in New Issue