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 | |
| parent | b5ac195828d9d28fa547bd3224c9e9d572d59034 (diff) | |
| download | bcm5719-llvm-674c9ff58577e384c8125e76145bd8f20c43fc19.tar.gz bcm5719-llvm-674c9ff58577e384c8125e76145bd8f20c43fc19.zip | |
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')
| -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 f8e959c38c7..3c522b53ab0 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 | 

