forked from OSchip/llvm-project
[IRBuilder] Deprecate CreateConstInBoundsGEP1_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
5071360eb1
commit
5df48493f0
|
@ -1927,8 +1927,10 @@ public:
|
|||
return Insert(GetElementPtrInst::CreateInBounds(Ty, Ptr, Idx), Name);
|
||||
}
|
||||
|
||||
LLVM_ATTRIBUTE_DEPRECATED(
|
||||
Value *CreateConstInBoundsGEP1_64(Value *Ptr, uint64_t Idx0,
|
||||
const Twine &Name = "") {
|
||||
const Twine &Name = ""),
|
||||
"Use the version with explicit element type instead") {
|
||||
return CreateConstInBoundsGEP1_64(
|
||||
Ptr->getType()->getScalarType()->getPointerElementType(), Ptr, Idx0,
|
||||
Name);
|
||||
|
|
Loading…
Reference in New Issue