We never want to pop the translation unit DC, so assert if this happens.

llvm-svn: 109280
This commit is contained in:
John McCall 2010-07-23 22:45:07 +00:00
parent df907f4594
commit dd762d1e5b
1 changed files with 1 additions and 0 deletions

View File

@ -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