mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[OpaquePtr] Remove uses of CreateGEP() without element type
Remove uses of to-be-deprecated API. In cases where the correct element type was not immediately obvious to me, fall back to explicit getPointerElementType().
This commit is contained in:
parent
0ad9d5a362
commit
17b52c557b
@ -302,7 +302,7 @@ class ReplaceLDSUseImpl {
|
||||
// Insert required set of instructions which replace LDS within F.
|
||||
auto *V = Builder.CreateBitCast(
|
||||
Builder.CreateGEP(
|
||||
LDSMemBaseAddr,
|
||||
Builder.getInt8Ty(), LDSMemBaseAddr,
|
||||
Builder.CreateLoad(LDSPointer->getValueType(), LDSPointer)),
|
||||
GV->getType());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user