Update call to CastInst::getCastOpcode for its new signature.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32166 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer 2006-12-04 02:48:01 +00:00
parent 575d95ce37
commit 3b3844288b

View File

@ -388,7 +388,8 @@ static bool ValueRequiresCast(const Value *V, const Type *Ty, TargetData *TD) {
// If this is another cast that can be eliminated, it isn't codegen either.
if (const CastInst *CI = dyn_cast<CastInst>(V))
if (isEliminableCastPair(CI, CastInst::getCastOpcode(V, Ty), Ty, TD))
if (isEliminableCastPair(CI, CastInst::getCastOpcode(
V, V->getType()->isSigned(), Ty, Ty->isSigned()), Ty, TD))
return false;
return true;
}