summaryrefslogtreecommitdiffstats
path: root/clang/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
commite73e4322d6764aaf760e3734c26431ca207e0236 (patch)
tree88e08266b7a66dd15ac036fa12b6125660c97eb7 /clang/CodeGen/CodeGenFunction.cpp
parent81990a3fc37376a972a31a3ad098b4151de7a5b2 (diff)
downloadbcm5719-llvm-e73e4322d6764aaf760e3734c26431ca207e0236.tar.gz
bcm5719-llvm-e73e4322d6764aaf760e3734c26431ca207e0236.zip
Implement break and continue. Patch by Anders Carlsson!
llvm-svn: 39927
Diffstat (limited to 'clang/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/CodeGen/CodeGenFunction.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/CodeGen/CodeGenFunction.cpp b/clang/CodeGen/CodeGenFunction.cpp
index 0cdda6c77cd..8cea3e7aafb 100644
--- a/clang/CodeGen/CodeGenFunction.cpp
+++ b/clang/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));
}
OpenPOWER on IntegriCloud