[llvm] 2c49301 - [IR] Remove variadic overload of StructType::setBody. NFC. (#114421)

via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 8 02:35:35 PST 2024


Author: Jay Foad
Date: 2024-11-08T10:35:31Z
New Revision: 2c49301d91d743c4424997c5f670a453439b4b86

URL: https://github.com/llvm/llvm-project/commit/2c49301d91d743c4424997c5f670a453439b4b86
DIFF: https://github.com/llvm/llvm-project/commit/2c49301d91d743c4424997c5f670a453439b4b86.diff

LOG: [IR] Remove variadic overload of StructType::setBody. NFC. (#114421)

This is unused in-tree.

Added: 
    

Modified: 
    llvm/include/llvm/IR/DerivedTypes.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/DerivedTypes.h b/llvm/include/llvm/IR/DerivedTypes.h
index eb0e5abdb7339c..19d351456d658e 100644
--- a/llvm/include/llvm/IR/DerivedTypes.h
+++ b/llvm/include/llvm/IR/DerivedTypes.h
@@ -330,13 +330,6 @@ class StructType : public Type {
   /// recursive.
   Error checkBody(ArrayRef<Type *> Elements);
 
-  template <typename... Tys>
-  std::enable_if_t<are_base_of<Type, Tys...>::value, void>
-  setBody(Type *elt1, Tys *... elts) {
-    assert(elt1 && "Cannot create a struct type with no elements with this");
-    setBody(ArrayRef<Type *>({elt1, elts...}));
-  }
-
   /// Return true if the specified type is valid as a element type.
   static bool isValidElementType(Type *ElemTy);
 


        


More information about the llvm-commits mailing list