From: Reid Spencer Date: Mon, 4 Dec 2006 02:48:01 +0000 (+0000) Subject: Update call to CastInst::getCastOpcode for its new signature. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=3b3844288bb9fa13be228c71e37233039f3e178f;p=oota-llvm.git 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 --- diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index adcd339f271..fac659f39b8 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -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(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; }