Skip to content

Commit 091f432

Browse files
committed
Make arg const
1 parent fd98ba6 commit 091f432

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaChecking.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7810,7 +7810,7 @@ bool Sema::CheckIntelSYCLAllocaBuiltinFunctionCall(unsigned, CallExpr *Call) {
78107810
// Check the return type is `sycl::multi_ptr<ET,
78117811
// sycl::access::address_space::private_space, DecoratedAddress>`:
78127812
// - `ET`: cv-unqualified trivial type
7813-
constexpr auto CheckType = [](QualType RT, ASTContext &Ctx) {
7813+
constexpr auto CheckType = [](QualType RT, const ASTContext &Ctx) {
78147814
if (!isSyclType(RT, SYCLTypeAttr::multi_ptr))
78157815
return true;
78167816
// Check element type

0 commit comments

Comments
 (0)