diff options
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 | 

