Skip to content

Commit 05332b7

Browse files
committed
TypeSize.h: add integral constructor to ElementCount
1 parent 902970b commit 05332b7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/llvm/Support/TypeSize.h

+3
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,9 @@ class ElementCount : public LinearPolySize<ElementCount> {
389389

390390
ElementCount(const LinearPolySize<ElementCount> &V) : LinearPolySize(V) {}
391391

392+
ElementCount(unsigned Size, bool IsScalable = false)
393+
: LinearPolySize(get(Size, IsScalable)) {}
394+
392395
/// Counting predicates.
393396
///
394397
///@{ Number of elements..

0 commit comments

Comments
 (0)