diff --git a/llvm/include/llvm/IR/DerivedTypes.h b/llvm/include/llvm/IR/DerivedTypes.h index eb0e5abdb7339..19d351456d658 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 Elements); - template - std::enable_if_t::value, void> - setBody(Type *elt1, Tys *... elts) { - assert(elt1 && "Cannot create a struct type with no elements with this"); - setBody(ArrayRef({elt1, elts...})); - } - /// Return true if the specified type is valid as a element type. static bool isValidElementType(Type *ElemTy);