Bugfix, unbreaking CodeGen/PowerPC/cttz.ll

llvm-svn: 26764
This commit is contained in:
Chris Lattner 2006-03-14 19:49:57 +00:00
parent 6d4a221d80
commit 6995470323
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}