Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions clang/lib/Sema/SemaSYCL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2773,8 +2773,7 @@ class SyclKernelBodyCreator : public SyclKernelFieldHandler {
TypeSourceInfo *TSInfo =
KernelObj->isLambda() ? KernelObj->getLambdaTypeInfo() : nullptr;
auto Type = QualType(KernelObj->getTypeForDecl(), 0);
if (KernelObj->isLambda())
Type->getAsRecordDecl()->setAnonymousStructOrUnion(true);
Type->getAsRecordDecl()->setAnonymousStructOrUnion(KernelObj->isLambda());
VarDecl *VD = VarDecl::Create(
Ctx, DC, KernelObj->getLocation(), KernelObj->getLocation(),
KernelObj->getIdentifier(), Type, TSInfo, SC_None);
Expand Down