forked from OSchip/llvm-project
Add an assert to catch lexical decl deserialization bugs.
llvm-svn: 244671
This commit is contained in:
parent
2e1f109c95
commit
2317a3e18e
|
@ -6240,6 +6240,7 @@ void ASTReader::FindExternalLexicalDecls(
|
|||
}
|
||||
|
||||
if (Decl *D = GetLocalDecl(*M, ID)) {
|
||||
assert(D->getKind() == K && "wrong kind for lexical decl");
|
||||
if (!DC->isDeclInLexicalTraversal(D))
|
||||
Decls.push_back(D);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue