mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-01 08:28:19 +00:00
fix a minor deviation from the original in my previous commit
llvm-svn: 52247
This commit is contained in:
parent
509b3a75f4
commit
10de8c6c59
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user