[cfe-commits] r109280 - /cfe/trunk/lib/Sema/SemaDecl.cpp
John McCall
rjmccall at apple.com
Fri Jul 23 15:45:07 PDT 2010
Author: rjmccall
Date: Fri Jul 23 17:45:07 2010
New Revision: 109280
URL: http://llvm.org/viewvc/llvm-project?rev=109280&view=rev
Log:
We never want to pop the translation unit DC, so assert if this happens.
Modified:
cfe/trunk/lib/Sema/SemaDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=109280&r1=109279&r2=109280&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Fri Jul 23 17:45:07 2010
@@ -360,6 +360,7 @@
assert(CurContext && "DeclContext imbalance!");
CurContext = getContainingDC(CurContext);
+ assert(CurContext && "Popped translation unit!");
}
/// EnterDeclaratorContext - Used when we must lookup names in the context
More information about the cfe-commits
mailing list