Skip to content

Commit 5d5a52b

Browse files
committed
UnsignedOrNone required following rebase for the discriminator override argument of ItaniumMangleContext::create().
1 parent 12d3f63 commit 5d5a52b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/ASTContext.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -14849,7 +14849,7 @@ static SYCLKernelInfo BuildSYCLKernelInfo(ASTContext &Context,
1484914849
// override is used to ensure consistent discriminator allocation across
1485014850
// host and device compilation.
1485114851
auto DeviceDiscriminatorOverrider =
14852-
[](ASTContext &Ctx, const NamedDecl *ND) -> std::optional<unsigned> {
14852+
[](ASTContext &Ctx, const NamedDecl *ND) -> UnsignedOrNone {
1485314853
if (const auto *RD = dyn_cast<CXXRecordDecl>(ND))
1485414854
if (RD->isLambda())
1485514855
return RD->getDeviceLambdaManglingNumber();

0 commit comments

Comments
 (0)