We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c44a72 commit 81ee7f4Copy full SHA for 81ee7f4
llvm/lib/IR/Type.cpp
@@ -845,9 +845,9 @@ static TargetTypeInfo getTargetTypeInfo(const TargetExtType *Ty) {
845
// as <vscale x (VREGS * 8) x i8>.
846
if (Name == "riscv_vec_tuple") {
847
unsigned TotalNumElts =
848
- std::max(cast<ScalableVectorType>(Ty->getTypeParameter(0))
849
- ->getMinNumElements(),
850
- (uint64_t)8) *
+ std::max<uint64_t>(cast<ScalableVectorType>(Ty->getTypeParameter(0))
+ ->getMinNumElements(),
+ 8) *
851
Ty->getIntParameter(0);
852
return TargetTypeInfo(
853
ScalableVectorType::get(Type::getInt8Ty(C), TotalNumElts));
0 commit comments