diff options
author | Chris Lattner <sabre@nondot.org> | 2006-06-06 22:26:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-06-06 22:26:02 +0000 |
commit | 18a4af2ba6ac38dd96c11de0743e7cf701c1cc14 (patch) | |
tree | e87a9c49147308ab534d3671d5f8ac63bce7f13c /lib/Transforms/Scalar/InstructionCombining.cpp | |
parent | 475c55393a67ae096d4ec7baffee5830e68e13c1 (diff) |
Fix a bug in a recent patch. This fixes UnitTests/Vector/Altivec/casts.c on
PPC/altivec
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28698 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/InstructionCombining.cpp')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 3a099af9e9..083acafe32 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -5169,7 +5169,7 @@ Instruction *InstCombiner::visitCastInst(CastInst &CI) { if (((Tmp = dyn_cast<CastInst>(SVI->getOperand(0))) && Tmp->getOperand(0)->getType() == CI.getType()) || ((Tmp = dyn_cast<CastInst>(SVI->getOperand(1))) && - Tmp->getOperand(1)->getType() == CI.getType())) { + Tmp->getOperand(0)->getType() == CI.getType())) { Value *LHS = InsertOperandCastBefore(SVI->getOperand(0), CI.getType(), &CI); Value *RHS = InsertOperandCastBefore(SVI->getOperand(1), |