summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-04-26 14:40:41 +0000
committerChris Lattner <sabre@nondot.org>2005-04-26 14:40:41 +0000
commitbd43b9db9d0ae2a131f608724dbc7e6db19d0234 (patch)
tree43c61d4e850e9134d5c48de067c68ffd0a62c832 /llvm/lib
parente06ef80244067587e0ec29f9b7248f61d6a5fa31 (diff)
downloadbcm5719-llvm-bd43b9db9d0ae2a131f608724dbc7e6db19d0234.tar.gz
bcm5719-llvm-bd43b9db9d0ae2a131f608724dbc7e6db19d0234.zip
Fix the compile failures from last night.
llvm-svn: 21565
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 83d390d4aea..c901b1a45e8 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -2281,6 +2281,8 @@ Instruction *InstCombiner::FoldGEPSetCC(User *GEPLHS, Value *RHS,
// 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)) {
OpenPOWER on IntegriCloud