Skip to content

Commit 2a82122

Browse files
committed
fixup! [llvm][RISCV] Support RISCV vector tuple type in llvm IR
1 parent a26f92b commit 2a82122

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/IR/Type.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -857,9 +857,9 @@ static TargetTypeInfo getTargetTypeInfo(const TargetExtType *Ty) {
857857
// as <vscale x (VREGS * 8) x i8>.
858858
if (Name == "riscv_vec_tuple") {
859859
unsigned TotalNumElts =
860-
std::max(cast<ScalableVectorType>(Ty->getTypeParameter(0))
861-
->getMinNumElements(),
862-
(uint64_t)8) *
860+
std::max<uint64_t>(cast<ScalableVectorType>(Ty->getTypeParameter(0))
861+
->getMinNumElements(),
862+
8) *
863863
Ty->getIntParameter(0);
864864
return TargetTypeInfo(
865865
ScalableVectorType::get(Type::getInt8Ty(C), TotalNumElts));

0 commit comments

Comments
 (0)