Skip to content

Commit 049d5ef

Browse files
committed
[IR] Remove variadic overload of StructType::setBody. NFC.
This is unused in-tree.
1 parent cf3d6fd commit 049d5ef

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
@@ -320,13 +320,6 @@ class StructType : public Type {
320320
/// Specify a body for an opaque identified type.
321321
void setBody(ArrayRef<Type*> Elements, bool isPacked = false);
322322

323-
template <typename... Tys>
324-
std::enable_if_t<are_base_of<Type, Tys...>::value, void>
325-
setBody(Type *elt1, Tys *... elts) {
326-
assert(elt1 && "Cannot create a struct type with no elements with this");
327-
setBody(ArrayRef<Type *>({elt1, elts...}));
328-
}
329-
330323
/// Return true if the specified type is valid as a element type.
331324
static bool isValidElementType(Type *ElemTy);
332325

0 commit comments

Comments
 (0)