diff options
author | Chris Lattner <sabre@nondot.org> | 2004-05-08 22:41:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-05-08 22:41:42 +0000 |
commit | 8ec5f88c79882eaf303e0503da13ae4f7fcf4e03 (patch) | |
tree | 759a1a774df02bb284183aca99e12faeaa53e563 /llvm/lib/Transforms/Scalar/InstructionCombining.cpp | |
parent | 090365b1549a11989d7dd0f11e895a9fbc8390c5 (diff) | |
download | bcm5719-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.cpp | 3 |
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) { |