mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 19:29:31 +00:00
Fix stupid bug in my checkin yesterday
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13429 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b4b2e9d5a7
commit
be97b4e9ab
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user