forked from OSchip/llvm-project
[IR] Retire unused getGEPReturnType overload. NFCI.
llvm-svn: 285257
This commit is contained in:
parent
7527752353
commit
48ef6ca0c3
|
@ -959,11 +959,6 @@ public:
|
|||
|
||||
/// Returns the pointer type returned by the GEP
|
||||
/// instruction, which may be a vector of pointers.
|
||||
static Type *getGEPReturnType(Value *Ptr, ArrayRef<Value *> IdxList) {
|
||||
return getGEPReturnType(
|
||||
cast<PointerType>(Ptr->getType()->getScalarType())->getElementType(),
|
||||
Ptr, IdxList);
|
||||
}
|
||||
static Type *getGEPReturnType(Type *ElTy, Value *Ptr,
|
||||
ArrayRef<Value *> IdxList) {
|
||||
Type *PtrTy = PointerType::get(checkGEPType(getIndexedType(ElTy, IdxList)),
|
||||
|
|
Loading…
Reference in New Issue