diff options
Diffstat (limited to 'llvm/include/llvm/Analysis/PtrUseVisitor.h')
-rw-r--r-- | llvm/include/llvm/Analysis/PtrUseVisitor.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/Analysis/PtrUseVisitor.h b/llvm/include/llvm/Analysis/PtrUseVisitor.h index fbf04c841d30..05bca2226742 100644 --- a/llvm/include/llvm/Analysis/PtrUseVisitor.h +++ b/llvm/include/llvm/Analysis/PtrUseVisitor.h @@ -222,9 +222,9 @@ public: // offsets on this pointer. // FIXME: Support a vector of pointers. assert(I.getType()->isPointerTy()); - IntegerType *IntPtrTy = cast<IntegerType>(DL.getIntPtrType(I.getType())); + IntegerType *IntIdxTy = cast<IntegerType>(DL.getIndexType(I.getType())); IsOffsetKnown = true; - Offset = APInt(IntPtrTy->getBitWidth(), 0); + Offset = APInt(IntIdxTy->getBitWidth(), 0); PI.reset(); // Enqueue the uses of this pointer. |