[llvm] r285257 - [IR] Retire unused getGEPReturnType overload. NFCI.

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 26 16:46:16 PDT 2016


Author: davide
Date: Wed Oct 26 18:46:16 2016
New Revision: 285257

URL: http://llvm.org/viewvc/llvm-project?rev=285257&view=rev
Log:
[IR] Retire unused getGEPReturnType overload. NFCI.

Modified:
    llvm/trunk/include/llvm/IR/Instructions.h

Modified: llvm/trunk/include/llvm/IR/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Instructions.h?rev=285257&r1=285256&r2=285257&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Instructions.h (original)
+++ llvm/trunk/include/llvm/IR/Instructions.h Wed Oct 26 18:46:16 2016
@@ -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)),




More information about the llvm-commits mailing list