Skip to content

Commit 3654df3

Browse files
hoodmaneFznamznon
andauthored
Apply suggestions from code review
Co-authored-by: Mariya Podchishchaeva <[email protected]>
1 parent f0ca59b commit 3654df3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Sema/SemaWasm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static bool CheckWasmBuiltinArgIsInteger(Sema &S, CallExpr *E,
5252
}
5353

5454
bool SemaWasm::BuiltinWasmRefNullExtern(CallExpr *TheCall) {
55-
if (SemaRef.checkArgCount(TheCall, 0))
55+
if (SemaRef.checkArgCount(TheCall, /*DesiredArgCount=*/ 0))
5656
return true;
5757

5858
TheCall->setType(getASTContext().getWebAssemblyExternrefType());
@@ -62,7 +62,7 @@ bool SemaWasm::BuiltinWasmRefNullExtern(CallExpr *TheCall) {
6262

6363
bool SemaWasm::BuiltinWasmRefNullFunc(CallExpr *TheCall) {
6464
ASTContext &Context = getASTContext();
65-
if (SemaRef.checkArgCount(TheCall, 0))
65+
if (SemaRef.checkArgCount(TheCall, /*DesiredArgCount=*/ 0))
6666
return true;
6767

6868
// This custom type checking code ensures that the nodes are as expected

0 commit comments

Comments
 (0)