diff options
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)); } |