From: Chris Lattner Date: Sat, 8 May 2004 22:41:42 +0000 (+0000) Subject: Fix stupid bug in my checkin yesterday X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=be97b4e9ab871214fbbb7587ac0d5cff769374e3;p=oota-llvm.git Fix stupid bug in my checkin yesterday git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13429 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 11f6937a8ee..67b99c56e7e 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(PtrOp)), E = gep_type_end(*cast(PtrOp)); I != E; ++I) - if (!isa(*I)) - EndsWithSequential = true; + EndsWithSequential = !isa(*I); // Can we combine the two pointer arithmetics offsets? if (EndsWithSequential) {