mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +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 (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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user