mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
Fix an error from r71252.
llvm-svn: 71255
This commit is contained in:
parent
5de4207c68
commit
6d21c4110b
@ -1869,11 +1869,11 @@ SCEVHandle ScalarEvolution::createNodeForPHI(PHINode *PN) {
|
||||
SCEVHandle ScalarEvolution::createNodeForGEP(GetElementPtrInst *GEP) {
|
||||
|
||||
const Type *IntPtrTy = TD->getIntPtrType();
|
||||
Value *Base = U->getOperand(0);
|
||||
Value *Base = GEP->getOperand(0);
|
||||
SCEVHandle TotalOffset = getIntegerSCEV(0, IntPtrTy);
|
||||
gep_type_iterator GTI = gep_type_begin(U);
|
||||
for (GetElementPtrInst::op_iterator I = next(U->op_begin()),
|
||||
E = U->op_end();
|
||||
gep_type_iterator GTI = gep_type_begin(GEP);
|
||||
for (GetElementPtrInst::op_iterator I = next(GEP->op_begin()),
|
||||
E = GEP->op_end();
|
||||
I != E; ++I) {
|
||||
Value *Index = *I;
|
||||
// Compute the (potentially symbolic) offset in bytes for this index.
|
||||
|
Loading…
Reference in New Issue
Block a user