diff options
author | Chris Lattner <sabre@nondot.org> | 2002-09-10 22:52:49 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-09-10 22:52:49 +0000 |
commit | 228b14b71eaf7c2990d25b8be56ca7250f605a8b (patch) | |
tree | c65a65807b7a5aa043b8814cf9a7c7a3ac89f9c6 /lib/Transforms/Utils/UnifyFunctionExitNodes.cpp | |
parent | 1d3d7114ff6ec223d7d1f6cbba36c2e0a268eb3d (diff) |
Fix minor problems in previous checkin
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3668 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/UnifyFunctionExitNodes.cpp')
-rw-r--r-- | lib/Transforms/Utils/UnifyFunctionExitNodes.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp b/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp index 5c1e86b4a1..d5a7040f39 100644 --- a/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp +++ b/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp @@ -50,7 +50,7 @@ bool UnifyFunctionExitNodes::runOnFunction(Function &F) { if (F.getReturnType() != Type::VoidTy) { // If the function doesn't return void... add a PHI node to the block... PHINode *PN = new PHINode(F.getReturnType(), "UnifiedRetVal", - NewRetBlock.end()); + NewRetBlock->end()); // Add an incoming element to the PHI node for every return instruction that // is merging into this new block... @@ -59,10 +59,10 @@ bool UnifyFunctionExitNodes::runOnFunction(Function &F) { PN->addIncoming((*I)->getTerminator()->getOperand(0), *I); // Add a return instruction to return the result of the PHI node... - new ReturnInst(PN, NewRetBlock.end()); + new ReturnInst(PN, NewRetBlock->end()); } else { // If it returns void, just add a return void instruction to the block - new ReturnInst(0, NewRetBlock.end()); + new ReturnInst(0, NewRetBlock->end()); } // Loop over all of the blocks, replacing the return instruction with an |