From 05332b78c79426660951df3ade9f2ed7812955ff Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Tue, 2 Nov 2021 16:57:35 +0300 Subject: [PATCH] TypeSize.h: add integral constructor to ElementCount --- include/llvm/Support/TypeSize.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/llvm/Support/TypeSize.h b/include/llvm/Support/TypeSize.h index 30bbbd7db8c..4c6d4a796fa 100644 --- a/include/llvm/Support/TypeSize.h +++ b/include/llvm/Support/TypeSize.h @@ -389,6 +389,9 @@ public: ElementCount(const LinearPolySize &V) : LinearPolySize(V) {} + ElementCount(unsigned Size, bool IsScalable = false) + : LinearPolySize(get(Size, IsScalable)) {} + /// Counting predicates. /// ///@{ Number of elements..