mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-09 13:33:17 +00:00
Give the unified exit node a name
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2550 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1ea5c56795
commit
8ca21c245c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user