forked from OSchip/llvm-project
Bugfix, unbreaking CodeGen/PowerPC/cttz.ll
llvm-svn: 26764
This commit is contained in:
parent
6d4a221d80
commit
6995470323
|
@ -259,7 +259,7 @@ void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) {
|
|||
Instruction *RetVal = NewCI;
|
||||
|
||||
if (F->getReturnType() != NewFn->getReturnType()) {
|
||||
RetVal = new CastInst(NewCI, NewFn->getReturnType(),
|
||||
RetVal = new CastInst(NewCI, F->getReturnType(),
|
||||
NewCI->getName(), CI);
|
||||
NewCI->moveBefore(RetVal);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue