diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-09-09 23:34:14 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-09-09 23:34:14 +0000 |
commit | 35120c628595ecd05f9e82faa6a210837b48b236 (patch) | |
tree | 9fa87d41c97f006074df13d50d17a20ae6759896 | |
parent | 530b14ad2717c48611c821805e787b5dbbf088ec (diff) |
The translation unit is never deserialized
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139436 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/libclang/CIndex.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/libclang/CIndex.cpp b/tools/libclang/CIndex.cpp index 7f06a57feb..fcd6459d4f 100644 --- a/tools/libclang/CIndex.cpp +++ b/tools/libclang/CIndex.cpp @@ -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()) |