mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 02:32:11 +00:00
Fix bug with last patch which would occur when a call returned void and we
attempted to assign it a name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3142 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
853f9bee44
commit
e902bda4ce
@ -81,7 +81,8 @@ static void ConvertCallTo(CallInst *CI, Function *Dest) {
|
|||||||
BB->getInstList().remove(BBI);
|
BB->getInstList().remove(BBI);
|
||||||
|
|
||||||
// Transfer the name over...
|
// Transfer the name over...
|
||||||
NewCall->setName(CI->getName());
|
if (NewCall->getType() != Type::VoidTy)
|
||||||
|
NewCall->setName(CI->getName());
|
||||||
|
|
||||||
// Replace uses of the old instruction with the appropriate values...
|
// Replace uses of the old instruction with the appropriate values...
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user