From 8ec5f88c79882eaf303e0503da13ae4f7fcf4e03 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 8 May 2004 22:41:42 +0000 Subject: Fix stupid bug in my checkin yesterday llvm-svn: 13429 --- llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp') 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(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) { -- cgit v1.2.3