From 3b3844288bb9fa13be228c71e37233039f3e178f Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 4 Dec 2006 02:48:01 +0000 Subject: [PATCH] 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 --- lib/Transforms/Scalar/InstructionCombining.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }