summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-07-23 22:45:07 +0000
committerJohn McCall <rjmccall@apple.com>2010-07-23 22:45:07 +0000
commitdd762d1e5b1fc35df53ccfb201bc1a244044fd64 (patch)
tree1a27da5e989edc14cb05241de0054075cff70e18 /clang/lib/Sema/SemaDecl.cpp
parentdf907f45949b56b6ff8465d79d4f569e67a4d376 (diff)
downloadbcm5719-llvm-dd762d1e5b1fc35df53ccfb201bc1a244044fd64.tar.gz
bcm5719-llvm-dd762d1e5b1fc35df53ccfb201bc1a244044fd64.zip
We never want to pop the translation unit DC, so assert if this happens.
llvm-svn: 109280
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 85ea8bb2390..cf5f98e0685 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud