aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-05-08 22:41:42 +0000
committerChris Lattner <sabre@nondot.org>2004-05-08 22:41:42 +0000
commit8ec5f88c79882eaf303e0503da13ae4f7fcf4e03 (patch)
tree759a1a774df02bb284183aca99e12faeaa53e563
parent090365b1549a11989d7dd0f11e895a9fbc8390c5 (diff)
downloadllvm-8ec5f88c79882eaf303e0503da13ae4f7fcf4e03.zip
llvm-8ec5f88c79882eaf303e0503da13ae4f7fcf4e03.tar.gz
llvm-8ec5f88c79882eaf303e0503da13ae4f7fcf4e03.tar.bz2
Fix stupid bug in my checkin yesterday
llvm-svn: 13429
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
index 11f6937..67b99c5 100644
--- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -2624,8 +2624,7 @@ Instruction *InstCombiner::visitGetElementPtrInst(GetElementPtrInst &GEP) {
bool EndsWithSequential = false;
for (gep_type_iterator I = gep_type_begin(*cast<User>(PtrOp)),
E = gep_type_end(*cast<User>(PtrOp)); I != E; ++I)
- if (!isa<StructType>(*I))
- EndsWithSequential = true;
+ EndsWithSequential = !isa<StructType>(*I);
// Can we combine the two pointer arithmetics offsets?
if (EndsWithSequential) {