mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 15:11:39 +00:00
Fix stupid bug in my checkin yesterday
llvm-svn: 13429
This commit is contained in:
parent
c69bb49340
commit
0efd1cb264
@ -2624,8 +2624,7 @@ Instruction *InstCombiner::visitGetElementPtrInst(GetElementPtrInst &GEP) {
|
|||||||
bool EndsWithSequential = false;
|
bool EndsWithSequential = false;
|
||||||
for (gep_type_iterator I = gep_type_begin(*cast<User>(PtrOp)),
|
for (gep_type_iterator I = gep_type_begin(*cast<User>(PtrOp)),
|
||||||
E = gep_type_end(*cast<User>(PtrOp)); I != E; ++I)
|
E = gep_type_end(*cast<User>(PtrOp)); I != E; ++I)
|
||||||
if (!isa<StructType>(*I))
|
EndsWithSequential = !isa<StructType>(*I);
|
||||||
EndsWithSequential = true;
|
|
||||||
|
|
||||||
// Can we combine the two pointer arithmetics offsets?
|
// Can we combine the two pointer arithmetics offsets?
|
||||||
if (EndsWithSequential) {
|
if (EndsWithSequential) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user