From: John McCall Date: Fri, 23 Jul 2010 22:45:07 +0000 (+0000) Subject: We never want to pop the translation unit DC, so assert if this happens. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=acb7039ca3a39d564b765d31e7e8e35d3c17f261;p=clang We never want to pop the translation unit DC, so assert if this happens. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@109280 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 85ea8bb239..cf5f98e068 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -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