aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-07-16 21:28:45 +0000
committerChris Lattner <sabre@nondot.org>2007-07-16 21:28:45 +0000
commitda13870e99fe33934b2122f06528a5063f78ae4c (patch)
treeb0537b65749c5d635a4f265a53f6ec306eaaea82 /CodeGen/CodeGenFunction.cpp
parentf0fbcb356bc4eb5f6467dc4fc4bc447e9a630102 (diff)
Implement break and continue. Patch by Anders Carlsson!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39927 91177308-0d34-0410-b5e6-96231b3b80d8
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));
}