Skip to content

Commit 551589a

Browse files
committed
No longer checking the args for the builtin, since the declaration no longer has any arguments
1 parent 62d1256 commit 551589a

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

clang/lib/Sema/SemaHLSL.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2240,11 +2240,6 @@ bool SemaHLSL::CheckBuiltinFunctionCall(unsigned BuiltinID, CallExpr *TheCall) {
22402240
return true;
22412241
}
22422242
}
2243-
case Builtin::BI__builtin_hlsl_group_memory_barrier_with_group_sync: {
2244-
if (SemaRef.checkArgCountAtMost(TheCall, 0))
2245-
return true;
2246-
break;
2247-
}
22482243
}
22492244
return false;
22502245
}

clang/test/SemaHLSL/BuiltIns/GroupMemoryBarrierWithGroupSync-errors.hlsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22

33
void test_too_many_arg() {
44
__builtin_hlsl_group_memory_barrier_with_group_sync(0);
5-
// expected-error@-1 {{too many arguments to function call, expected at most 0, have 1}}
5+
// expected-error@-1 {{too many arguments to function call, expected 0, have 1}}
66
}

0 commit comments

Comments
 (0)