[llvm] [IR] Remove variadic overload of StructType::setBody. NFC. (PR #114421)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 31 09:03:00 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-ir
Author: Jay Foad (jayfoad)
<details>
<summary>Changes</summary>
This is unused in-tree.
---
Full diff: https://github.com/llvm/llvm-project/pull/114421.diff
1 Files Affected:
- (modified) llvm/include/llvm/IR/DerivedTypes.h (-7)
``````````diff
diff --git a/llvm/include/llvm/IR/DerivedTypes.h b/llvm/include/llvm/IR/DerivedTypes.h
index 820b5c0707df6c..7aabda9e6d78a8 100644
--- a/llvm/include/llvm/IR/DerivedTypes.h
+++ b/llvm/include/llvm/IR/DerivedTypes.h
@@ -320,13 +320,6 @@ class StructType : public Type {
/// Specify a body for an opaque identified type.
void setBody(ArrayRef<Type*> Elements, bool isPacked = false);
- 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);
``````````
</details>
https://github.com/llvm/llvm-project/pull/114421
More information about the llvm-commits
mailing list