diff options
author | Chris Lattner <sabre@nondot.org> | 2002-05-07 22:14:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-05-07 22:14:45 +0000 |
commit | 8ca21c245c5b4ce4a925344214d95b24cd957058 (patch) | |
tree | 62651474c1b899875b1623a83d15dc25e07a0cdd /lib/Transforms/Utils/UnifyFunctionExitNodes.cpp | |
parent | 1ea5c56795913c7c852fb76d59074011f5f26939 (diff) |
Give the unified exit node a name
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2550 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/UnifyFunctionExitNodes.cpp')
-rw-r--r-- | lib/Transforms/Utils/UnifyFunctionExitNodes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp b/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp index e6f65a8108..64ae2e3ed5 100644 --- a/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp +++ b/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp @@ -49,7 +49,7 @@ bool UnifyFunctionExitNodes::runOnFunction(Function *M) { if (M->getReturnType() != Type::VoidTy) { // If the function doesn't return void... add a PHI node to the block... - PHINode *PN = new PHINode(M->getReturnType()); + PHINode *PN = new PHINode(M->getReturnType(), "UnifiedRetVal"); NewRetBlock->getInstList().push_back(PN); // Add an incoming element to the PHI node for every return instruction that |