From 674c9ff58577e384c8125e76145bd8f20c43fc19 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 12 Sep 2002 19:00:43 +0000 Subject: [PATCH] Fix bug I introduced with one of my previous changes. Thanks fly out to Nick for noticing it! :) llvm-svn: 3691 --- llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp b/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp index f8e959c38c7d..3c522b53ab03 100644 --- a/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp +++ b/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp @@ -62,7 +62,7 @@ bool UnifyFunctionExitNodes::runOnFunction(Function &F) { NewRetBlock->getInstList().push_back(new ReturnInst(PN)); } else { // If it returns void, just add a return void instruction to the block - new ReturnInst(0, NewRetBlock->end()); + NewRetBlock->getInstList().push_back(new ReturnInst()); } // Loop over all of the blocks, replacing the return instruction with an