diff options
author | Chris Lattner <sabre@nondot.org> | 2007-07-16 21:28:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-07-16 21:28:45 +0000 |
commit | e73e4322d6764aaf760e3734c26431ca207e0236 (patch) | |
tree | 88e08266b7a66dd15ac036fa12b6125660c97eb7 /clang/CodeGen/CodeGenFunction.cpp | |
parent | 81990a3fc37376a972a31a3ad098b4151de7a5b2 (diff) | |
download | bcm5719-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.cpp | 3 |
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)); } |