diff options
Diffstat (limited to 'llvm/lib/CodeGen/AtomicExpandPass.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/AtomicExpandPass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AtomicExpandPass.cpp b/llvm/lib/CodeGen/AtomicExpandPass.cpp index d2b756e82964..7728cc50fc9f 100644 --- a/llvm/lib/CodeGen/AtomicExpandPass.cpp +++ b/llvm/lib/CodeGen/AtomicExpandPass.cpp @@ -765,7 +765,7 @@ static PartwordMaskValues createMaskInstrs(IRBuilderBase &Builder, assert(ValueSize < MinWordSize); PointerType *PtrTy = cast<PointerType>(Addr->getType()); - IntegerType *IntTy = DL.getIntPtrType(Ctx, PtrTy->getAddressSpace()); + IntegerType *IntTy = DL.getIndexType(Ctx, PtrTy->getAddressSpace()); Value *PtrLSB; if (AddrAlign < MinWordSize) { |
