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 a26f92b commit 2a82122Copy full SHA for 2a82122
llvm/lib/IR/Type.cpp
@@ -857,9 +857,9 @@ static TargetTypeInfo getTargetTypeInfo(const TargetExtType *Ty) {
857
// as <vscale x (VREGS * 8) x i8>.
858
if (Name == "riscv_vec_tuple") {
859
unsigned TotalNumElts =
860
- std::max(cast<ScalableVectorType>(Ty->getTypeParameter(0))
861
- ->getMinNumElements(),
862
- (uint64_t)8) *
+ std::max<uint64_t>(cast<ScalableVectorType>(Ty->getTypeParameter(0))
+ ->getMinNumElements(),
+ 8) *
863
Ty->getIntParameter(0);
864
return TargetTypeInfo(
865
ScalableVectorType::get(Type::getInt8Ty(C), TotalNumElts));
0 commit comments