mirror of
https://github.com/RPCS3/llvm.git
synced 2025-03-03 16:18:37 +00:00
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:
parent
575d95ce37
commit
3b3844288b
@ -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 this is another cast that can be eliminated, it isn't codegen either.
|
||||||
if (const CastInst *CI = dyn_cast<CastInst>(V))
|
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 false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user