aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CodeGen/CodeGenFunction.cpp')
-rw-r--r--CodeGen/CodeGenFunction.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/CodeGen/CodeGenFunction.cpp b/CodeGen/CodeGenFunction.cpp
index 0cdda6c77c..8cea3e7aaf 100644
--- a/CodeGen/CodeGenFunction.cpp
+++ b/CodeGen/CodeGenFunction.cpp
@@ -94,6 +94,9 @@ void CodeGenFunction::GenerateCode(const FunctionDecl *FD) {
else
Builder.CreateRet(llvm::UndefValue::get(CurFn->getReturnType()));
+ assert(BreakContinueStack.empty() &&
+ "mismatched push/pop in break/continue stack!");
+
// Verify that the function is well formed.
assert(!verifyFunction(*CurFn));
}