diff options
| author | Gabor Greif <ggreif@gmail.com> | 2008-06-12 21:51:29 +0000 |
|---|---|---|
| committer | Gabor Greif <ggreif@gmail.com> | 2008-06-12 21:51:29 +0000 |
| commit | 431e9560b70741089b0739c0a6eea5b3bfd5744e (patch) | |
| tree | 3b4da4f9379a0ce27b3b38c50703e0962f275d46 /llvm/lib/Transforms | |
| parent | f6d8e77027773644ecfb61cefcf7342a0f226769 (diff) | |
| download | bcm5719-llvm-431e9560b70741089b0739c0a6eea5b3bfd5744e.tar.gz bcm5719-llvm-431e9560b70741089b0739c0a6eea5b3bfd5744e.zip | |
fix a minor deviation from the original in my previous commit
llvm-svn: 52247
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index ce417831984..c04df4a749b 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -8287,7 +8287,7 @@ static unsigned EnforceKnownAlignment(Value *V, case Instruction::GetElementPtr: { // If all indexes are zero, it is just the alignment of the base pointer. bool AllZeroOperands = true; - for (User::op_iterator i = U->op_begin(), e = U->op_end(); i != e; ++i) + for (User::op_iterator i = U->op_begin() + 1, e = U->op_end(); i != e; ++i) if (!isa<Constant>(*i) || !cast<Constant>(*i)->isNullValue()) { AllZeroOperands = false; |

