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 | db3f9bc948208510895c76bde1490a7660b4f845 (patch) | |
| tree | 6df3872ebe3bebee5b2154e939c38866e028d86b /llvm | |
| parent | e167ee56c74fdf9b892f3d35995a0f214f625308 (diff) | |
| download | bcm5719-llvm-db3f9bc948208510895c76bde1490a7660b4f845.tar.gz bcm5719-llvm-db3f9bc948208510895c76bde1490a7660b4f845.zip  | |
Fix minor problems in previous checkin
llvm-svn: 3668
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp b/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp index 5c1e86b4a16..d5a7040f39d 100644 --- a/llvm/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp +++ b/llvm/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  | 

