Skip to content

Commit 81ee7f4

Browse files
committed
fixup! [llvm][RISCV] Support RISCV vector tuple type in llvm IR
1 parent 8c44a72 commit 81ee7f4

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
@@ -845,9 +845,9 @@ static TargetTypeInfo getTargetTypeInfo(const TargetExtType *Ty) {
845845
// as <vscale x (VREGS * 8) x i8>.
846846
if (Name == "riscv_vec_tuple") {
847847
unsigned TotalNumElts =
848-
std::max(cast<ScalableVectorType>(Ty->getTypeParameter(0))
849-
->getMinNumElements(),
850-
(uint64_t)8) *
848+
std::max<uint64_t>(cast<ScalableVectorType>(Ty->getTypeParameter(0))
849+
->getMinNumElements(),
850+
8) *
851851
Ty->getIntParameter(0);
852852
return TargetTypeInfo(
853853
ScalableVectorType::get(Type::getInt8Ty(C), TotalNumElts));

0 commit comments

Comments
 (0)