Skip to content

Commit b10ff51

Browse files
committed
fixup! [RISCV][VLS] Support RISCV VLS calling convention
1 parent 65361ab commit b10ff51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8041,7 +8041,7 @@ static bool handleFunctionTypeAttr(TypeProcessingState &state, ParsedAttr &attr,
80418041
if (attr.getNumArgs() &&
80428042
!S.checkUInt32Argument(attr, attr.getArgAsExpr(0), ABIVLen))
80438043
return false;
8044-
if (ABIVLen != 2 && (ABIVLen < 32 || ABIVLen > 65536)) {
8044+
if (attr.getNumArgs() && (ABIVLen < 32 || ABIVLen > 65536)) {
80458045
S.Diag(attr.getLoc(), diag::err_argument_invalid_range)
80468046
<< ABIVLen << 32 << 65536;
80478047
return false;

0 commit comments

Comments
 (0)