forked from OSchip/llvm-project
parent
24e24d51a1
commit
33f219d1a9
|
@ -359,7 +359,8 @@ DeclContext *DeclContext::getNextContext() {
|
|||
}
|
||||
|
||||
void DeclContext::addDecl(Decl *D) {
|
||||
assert(D->getLexicalDeclContext() == this && "Decl inserted into wrong lexical context");
|
||||
assert(D->getLexicalDeclContext() == this &&
|
||||
"Decl inserted into wrong lexical context");
|
||||
assert(!D->NextDeclInScope && D != LastDecl &&
|
||||
"Decl already inserted into a DeclContext");
|
||||
|
||||
|
|
Loading…
Reference in New Issue