You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[SYCL] Remove manual diagnostic checking for stmt attrs. (#3442)
Statement attributes now have automatic diagnostic checking, so let's
use that. This does have a change in behavior in that passing the wrong
number of arguments is now an error instead of a warning, but that
behavior is more consistent with other attributes.
Copy file name to clipboardExpand all lines: clang/test/SemaSYCL/initiation_interval.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@
9
9
10
10
[[intel::initiation_interval(-1)]] voidfunc1() {} // expected-error{{'initiation_interval' attribute requires a positive integral compile time constant expression}}
11
11
12
-
[[intel::initiation_interval(0, 1)]] voidfunc2() {} // expected-error{{'initiation_interval' attribute takes no more than 1 argument}}
12
+
[[intel::initiation_interval(0, 1)]] voidfunc2() {} // expected-error{{'initiation_interval' attribute takes one argument}}
13
13
14
14
// Tests for Intel FPGA initiation_interval function attribute duplication.
15
15
// No diagnostic is emitted because the arguments match. Duplicate attribute is silently ignored.
0 commit comments