Skip to content

Commit 2c49301

Browse files
authored
[IR] Remove variadic overload of StructType::setBody. NFC. (#114421)
This is unused in-tree.
1 parent 4bcd4d8 commit 2c49301

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

llvm/include/llvm/IR/DerivedTypes.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -330,13 +330,6 @@ class StructType : public Type {
330330
/// recursive.
331331
Error checkBody(ArrayRef<Type *> Elements);
332332

333-
template <typename... Tys>
334-
std::enable_if_t<are_base_of<Type, Tys...>::value, void>
335-
setBody(Type *elt1, Tys *... elts) {
336-
assert(elt1 && "Cannot create a struct type with no elements with this");
337-
setBody(ArrayRef<Type *>({elt1, elts...}));
338-
}
339-
340333
/// Return true if the specified type is valid as a element type.
341334
static bool isValidElementType(Type *ElemTy);
342335

0 commit comments

Comments
 (0)