[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Apr 26 07:40:58 PDT 2005
Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.330 -> 1.331
---
Log message:
Fix the compile failures from last night.
---
Diffs of the changes: (+2 -0)
InstructionCombining.cpp | 2 ++
1 files changed, 2 insertions(+)
Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.330 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.331
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.330 Mon Apr 25 15:17:30 2005
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Tue Apr 26 09:40:41 2005
@@ -2281,6 +2281,8 @@
// compare the base pointer.
if (PtrBase != GEPRHS->getOperand(0)) {
bool IndicesTheSame = GEPLHS->getNumOperands()==GEPRHS->getNumOperands();
+ IndicesTheSame &= GEPLHS->getOperand(0)->getType() ==
+ GEPRHS->getOperand(0)->getType();
if (IndicesTheSame)
for (unsigned i = 1, e = GEPLHS->getNumOperands(); i != e; ++i)
if (GEPLHS->getOperand(i) != GEPRHS->getOperand(i)) {
More information about the llvm-commits
mailing list