From da13870e99fe33934b2122f06528a5063f78ae4c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 16 Jul 2007 21:28:45 +0000 Subject: 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 --- CodeGen/CodeGenFunction.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CodeGen/CodeGenFunction.cpp') 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)); } -- cgit v1.2.3-18-g5258