We never want to pop the translation unit DC, so assert if this happens.
llvm-svn: 109280
This commit is contained in:
parent
df907f4594
commit
dd762d1e5b
|
@ -360,6 +360,7 @@ void Sema::PopDeclContext() {
|
|||
assert(CurContext && "DeclContext imbalance!");
|
||||
|
||||
CurContext = getContainingDC(CurContext);
|
||||
assert(CurContext && "Popped translation unit!");
|
||||
}
|
||||
|
||||
/// EnterDeclaratorContext - Used when we must lookup names in the context
|
||||
|
|
Loading…
Reference in New Issue