aboutsummaryrefslogtreecommitdiffstats
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
commitbe97b4e9ab871214fbbb7587ac0d5cff769374e3 (patch)
tree3de4b05e79afcddfd6a9de625ea98b8c2445b805
parentb4b2e9d5a74a4c1315ad86474944fd2fb9244ba7 (diff)
downloadexternal_llvm-be97b4e9ab871214fbbb7587ac0d5cff769374e3.zip
external_llvm-be97b4e9ab871214fbbb7587ac0d5cff769374e3.tar.gz
external_llvm-be97b4e9ab871214fbbb7587ac0d5cff769374e3.tar.bz2
Fix stupid bug in my checkin yesterday
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13429 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index 11f6937..67b99c5 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/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) {