projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
177dd3f
)
fix a minor deviation from the original in my previous commit
author
Gabor Greif
<ggreif@gmail.com>
Thu, 12 Jun 2008 21:51:29 +0000
(21:51 +0000)
committer
Gabor Greif
<ggreif@gmail.com>
Thu, 12 Jun 2008 21:51:29 +0000
(21:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52247
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index ce4178319842b802d150b3924c8778ca487ccc57..c04df4a749b560fc8afaae021f5359a787390889 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
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;