mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
[IRBuilder] Deprecate CreateConstGEP2_64() without element type
This API is incompatible with opaque pointers and deprecated in favor of the version that accepts an explicit element type.
This commit is contained in:
parent
a471532d2a
commit
0911b5db54
@ -1944,8 +1944,10 @@ public:
|
||||
return Insert(GetElementPtrInst::Create(Ty, Ptr, Idxs), Name);
|
||||
}
|
||||
|
||||
Value *CreateConstGEP2_64(Value *Ptr, uint64_t Idx0, uint64_t Idx1,
|
||||
const Twine &Name = "") {
|
||||
LLVM_ATTRIBUTE_DEPRECATED(
|
||||
Value *CreateConstGEP2_64(Value *Ptr, uint64_t Idx0, uint64_t Idx1,
|
||||
const Twine &Name = ""),
|
||||
"Use the version with explicit element type instead") {
|
||||
return CreateConstGEP2_64(
|
||||
Ptr->getType()->getScalarType()->getPointerElementType(), Ptr, Idx0,
|
||||
Idx1, Name);
|
||||
|
Loading…
Reference in New Issue
Block a user