aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-12-04 02:48:01 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-12-04 02:48:01 +0000
commit3b3844288bb9fa13be228c71e37233039f3e178f (patch)
treeea206fb2ed2a167a36f58ce8891807952dd152b1 /lib/Transforms
parent575d95ce373f1e405e6c27ce8d9f244bba3bdd0d (diff)
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
Diffstat (limited to 'lib/Transforms')
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index adcd339f27..fac659f39b 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<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;
}