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 | da13870e99fe33934b2122f06528a5063f78ae4c (patch) | |
tree | b0537b65749c5d635a4f265a53f6ec306eaaea82 /CodeGen/CodeGenFunction.cpp | |
parent | f0fbcb356bc4eb5f6467dc4fc4bc447e9a630102 (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.cpp | 3 |
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)); } |