Skip to content

Commit f551ba4

Browse files
committed
Modify handling of SYCL special types to account for default constructor access specifier
1 parent 847163d commit f551ba4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3950,10 +3950,10 @@ class SyclKernelBodyCreator : public SyclKernelFieldHandler {
39503950
}
39513951

39523952
// Default inits the type, then calls the init-method in the body.
3953-
// A type may not have a public private default constructor as per its spec so
3954-
// typically the default constructor will be private and in such cases we must
3955-
// manually override the access specifier from private to public just for the
3956-
// duration of this default initialization.
3953+
// A type may not have a public default constructor as per its spec so
3954+
// typically if this is the case the default constructor will be private and
3955+
// in such cases we must manually override the access specifier from private
3956+
// to public just for the duration of this default initialization.
39573957
bool handleSpecialType(FieldDecl *FD, QualType Ty) {
39583958
const auto *RecordDecl = Ty->getAsCXXRecordDecl();
39593959
AccessSpecifier default_constructor_access;

0 commit comments

Comments
 (0)