Skip to content

Commit 5ae220f

Browse files
committed
Rebase and remove checks for intel::reqd_work_group_size spelling
1 parent 4e4008a commit 5ae220f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

clang/lib/Sema/SemaDeclAttr.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3155,13 +3155,12 @@ static void handleWorkGroupSize(Sema &S, Decl *D, const ParsedAttr &AL) {
31553155
Expr *XDimExpr = AL.getArgAsExpr(0);
31563156

31573157
// If no attribute argument is specified, set the second and third argument
3158-
// to the default value 1, but only if the sycl:: or intel::
3159-
// reqd_work_group_size spelling was used.
3158+
// to the default value 1, but only if the sycl::reqd_work_group_size
3159+
// spelling was used.
31603160
//
31613161
auto SetDefaultValue = [](Sema &S, const ParsedAttr &AL) {
31623162
assert(AL.getKind() == ParsedAttr::AT_ReqdWorkGroupSize && AL.hasScope() &&
3163-
(AL.getScopeName()->isStr("sycl") ||
3164-
AL.getScopeName()->isStr("intel")));
3163+
AL.getScopeName()->isStr("sycl"));
31653164
return IntegerLiteral::Create(S.Context, llvm::APInt(32, 1),
31663165
S.Context.IntTy, AL.getLoc());
31673166
};

0 commit comments

Comments
 (0)