summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/InstructionCombining.cpp
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 /llvm/lib/Transforms/Scalar/InstructionCombining.cpp
parent090365b1549a11989d7dd0f11e895a9fbc8390c5 (diff)
downloadbcm5719-llvm-8ec5f88c79882eaf303e0503da13ae4f7fcf4e03.tar.gz
bcm5719-llvm-8ec5f88c79882eaf303e0503da13ae4f7fcf4e03.zip
Fix stupid bug in my checkin yesterday
llvm-svn: 13429
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp')
-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 11f6937a8ee..67b99c56e7e 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) {
OpenPOWER on IntegriCloud