Skip to content

Commit 2330ed3

Browse files
committed
Fix Clang format errors
Signed-off-by: Soumi Manna <[email protected]>
1 parent 18abeba commit 2330ed3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3520,8 +3520,8 @@ void Sema::AddSYCLIntelMaxWorkGroupSizeAttr(Decl *D,
35203520
// the attribute holds equal values to (1, 1, 1) in case the value of
35213521
// SYCLIntelMaxGlobalWorkDimAttr equals to 0.
35223522
if (const auto *DeclAttr = D->getAttr<SYCLIntelMaxGlobalWorkDimAttr>()) {
3523-
if (AreAllAttrArgsOne(DeclAttr->getValue(), XDim, YDim, ZDim)
3524-
== AttrArgResult::NotEqualToOne) {
3523+
if (AreAllAttrArgsOne(DeclAttr->getValue(), XDim, YDim, ZDim) ==
3524+
AttrArgResult::NotEqualToOne) {
35253525
Diag(CI.getLoc(), diag::err_sycl_x_y_z_arguments_must_be_one)
35263526
<< CI << DeclAttr;
35273527
return;
@@ -3583,7 +3583,7 @@ SYCLIntelMaxWorkGroupSizeAttr *Sema::MergeSYCLIntelMaxWorkGroupSizeAttr(
35833583
// equals to 0.
35843584
if (const auto *DeclAttr = D->getAttr<SYCLIntelMaxGlobalWorkDimAttr>()) {
35853585
if (AreAllAttrArgsOne(DeclAttr->getValue(), A.getXDim(), A.getYDim(),
3586-
A.getZDim()) == AttrArgResult::NotEqualToOne) {
3586+
A.getZDim()) == AttrArgResult::NotEqualToOne) {
35873587
Diag(A.getLoc(), diag::err_sycl_x_y_z_arguments_must_be_one)
35883588
<< &A << DeclAttr;
35893589
return nullptr;

clang/test/SemaSYCL/intel-max-work-group-size.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
[[intel::max_work_group_size(32, 32, 32)]] void f3(); // OK
1616

1717
// Produce a conflicting attribute warning when the args are different.
18-
[[intel::max_work_group_size(6, 6, 6)]] // expected-note {{previous attribute is here}}
19-
[[intel::max_work_group_size(16, 16, 16)]] void // expected-warning {{attribute 'max_work_group_size' is already applied with different arguments}}
18+
[[intel::max_work_group_size(6, 6, 6)]] // expected-note {{previous attribute is here}}
19+
[[intel::max_work_group_size(16, 16, 16)]] void // expected-warning {{attribute 'max_work_group_size' is already applied with different arguments}}
2020
f4() {}
2121

2222
// Catch the easy case where the attributes are all specified at once with

0 commit comments

Comments
 (0)