mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
fix a minor deviation from the original in my previous commit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52247 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -8287,7 +8287,7 @@ static unsigned EnforceKnownAlignment(Value *V,
|
|||||||
case Instruction::GetElementPtr: {
|
case Instruction::GetElementPtr: {
|
||||||
// If all indexes are zero, it is just the alignment of the base pointer.
|
// If all indexes are zero, it is just the alignment of the base pointer.
|
||||||
bool AllZeroOperands = true;
|
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) ||
|
if (!isa<Constant>(*i) ||
|
||||||
!cast<Constant>(*i)->isNullValue()) {
|
!cast<Constant>(*i)->isNullValue()) {
|
||||||
AllZeroOperands = false;
|
AllZeroOperands = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user