mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[OpaquePtr] Remove uses of CreateConstGEP1_64() without element type
Remove uses of to-be-deprecated API.
This commit is contained in:
parent
923a0b4995
commit
2e74b1c954
@ -165,8 +165,10 @@ bool AMDGPULateCodeGenPrepare::visitLoadInst(LoadInst &LI) {
|
||||
PointerType *Int32PtrTy = Type::getInt32PtrTy(LI.getContext(), AS);
|
||||
PointerType *Int8PtrTy = Type::getInt8PtrTy(LI.getContext(), AS);
|
||||
auto *NewPtr = IRB.CreateBitCast(
|
||||
IRB.CreateConstGEP1_64(IRB.CreatePointerBitCastOrAddrSpaceCast(Base, Int8PtrTy),
|
||||
Offset - Adjust),
|
||||
IRB.CreateConstGEP1_64(
|
||||
IRB.getInt8Ty(),
|
||||
IRB.CreatePointerBitCastOrAddrSpaceCast(Base, Int8PtrTy),
|
||||
Offset - Adjust),
|
||||
Int32PtrTy);
|
||||
LoadInst *NewLd = IRB.CreateAlignedLoad(IRB.getInt32Ty(), NewPtr, Align(4));
|
||||
NewLd->copyMetadata(LI);
|
||||
|
Loading…
Reference in New Issue
Block a user