forked from OSchip/llvm-project
Fix bug with last patch which would occur when a call returned void and we
attempted to assign it a name. llvm-svn: 3142
This commit is contained in:
parent
dc403c86ec
commit
ed37856e69
|
@ -81,6 +81,7 @@ static void ConvertCallTo(CallInst *CI, Function *Dest) {
|
||||||
BB->getInstList().remove(BBI);
|
BB->getInstList().remove(BBI);
|
||||||
|
|
||||||
// Transfer the name over...
|
// Transfer the name over...
|
||||||
|
if (NewCall->getType() != Type::VoidTy)
|
||||||
NewCall->setName(CI->getName());
|
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…
Reference in New Issue