projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ea5c56
)
Give the unified exit node a name
author
Chris Lattner
<sabre@nondot.org>
Tue, 7 May 2002 22:14:45 +0000
(22:14 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 7 May 2002 22:14:45 +0000
(22:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2550
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
b/lib/Transforms/Utils/UnifyFunctionExitNodes.cpp
index e6f65a81087222c926beeda021b2f286aedd6d71..64ae2e3ed5c1ee7658cbbfb468046811ce895449 100644
(file)
--- 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