Skip to content

Commit 8c8ef94

Browse files
committed
fixup! [RISCV][VLS] Support RISCV VLS calling convention
1 parent a199547 commit 8c8ef94

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
@@ -8113,7 +8113,7 @@ static bool handleFunctionTypeAttr(TypeProcessingState &state, ParsedAttr &attr,
81138113
if (attr.getNumArgs() &&
81148114
!S.checkUInt32Argument(attr, attr.getArgAsExpr(0), ABIVLen))
81158115
return false;
8116-
if (ABIVLen != 2 && (ABIVLen < 32 || ABIVLen > 65536)) {
8116+
if (attr.getNumArgs() && (ABIVLen < 32 || ABIVLen > 65536)) {
81178117
S.Diag(attr.getLoc(), diag::err_argument_invalid_range)
81188118
<< ABIVLen << 32 << 65536;
81198119
return false;

0 commit comments

Comments
 (0)