diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-12 19:00:43 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-12 19:00:43 +0000 |
commit | 674c9ff58577e384c8125e76145bd8f20c43fc19 (patch) | |
tree | 800d9f062ae8ef22db56e4b41e5f0e564f6cf6ee /llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp | |
parent | b5ac195828d9d28fa547bd3224c9e9d572d59034 (diff) | |
download | llvm-674c9ff58577e384c8125e76145bd8f20c43fc19.zip llvm-674c9ff58577e384c8125e76145bd8f20c43fc19.tar.gz llvm-674c9ff58577e384c8125e76145bd8f20c43fc19.tar.bz2 |
Fix bug I introduced with one of my previous changes.
Thanks fly out to Nick for noticing it! :)
llvm-svn: 3691
Diffstat (limited to 'llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp b/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp index f8e959c..3c522b5 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 |