From acb7039ca3a39d564b765d31e7e8e35d3c17f261 Mon Sep 17 00:00:00 2001 From: John McCall Date: Fri, 23 Jul 2010 22:45:07 +0000 Subject: [PATCH] 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 --- lib/Sema/SemaDecl.cpp | 1 + 1 file changed, 1 insertion(+) 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 -- 2.40.0