mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-13 15:37:24 +00:00
Fix bug I introduced with one of my previous changes.
Thanks fly out to Nick for noticing it! :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3691 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1763525fa9
commit
1a7db9be56
@ -62,7 +62,7 @@ bool UnifyFunctionExitNodes::runOnFunction(Function &F) {
|
||||
NewRetBlock->getInstList().push_back(new ReturnInst(PN));
|
||||
} else {
|
||||
// If it returns void, just add a return void instruction to the block
|
||||
new ReturnInst(0, NewRetBlock->end());
|
||||
NewRetBlock->getInstList().push_back(new ReturnInst());
|
||||
}
|
||||
|
||||
// Loop over all of the blocks, replacing the return instruction with an
|
||||
|
Loading…
x
Reference in New Issue
Block a user