mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-16 04:56:06 +00:00
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…
x
Reference in New Issue
Block a user