From: Chris Lattner Date: Thu, 12 Sep 2002 19:00:43 +0000 (+0000) Subject: Fix bug I introduced with one of my previous changes. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=1a7db9be567ffe50a551208433859a19da2a2ca9;p=oota-llvm.git Fix bug I introduced with one of my previous changes. Thanks fly out to Nick for noticing it! :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3691 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp b/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp index f8e959c38c7..3c522b53ab0 100644 --- a/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp +++ b/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