mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
Bugfix, unbreaking CodeGen/PowerPC/cttz.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26764 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bb636274d4
commit
7538f4b52b
@ -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…
x
Reference in New Issue
Block a user