Skip to content

Commit 6c1e3e4

Browse files
authored
[IR] Return 'unsigned' from ScalableVectorType::getMinNumElements(). (#98103)
The underlying ElementQuantity field is 'unsigned'. The similar FixedVectorType::getNumElements() returns 'unsigned'.
1 parent 9f6dd1f commit 6c1e3e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/IR/DerivedTypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ class ScalableVectorType : public VectorType {
631631

632632
/// Get the minimum number of elements in this vector. The actual number of
633633
/// elements in the vector is an integer multiple of this value.
634-
uint64_t getMinNumElements() const { return ElementQuantity; }
634+
unsigned getMinNumElements() const { return ElementQuantity; }
635635

636636
static bool classof(const Type *T) {
637637
return T->getTypeID() == ScalableVectorTyID;

0 commit comments

Comments
 (0)