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..