Skip to content

Commit 53bb00e

Browse files
authored
[SYCL][NFC] Fix -Wreorder in SemaSYCL.cpp (#5403)
1 parent 53020cb commit 53bb00e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaSYCL.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1566,8 +1566,8 @@ void KernelObjVisitor::visitArray(const CXXRecordDecl *Owner, FieldDecl *Field,
15661566
// A type to check the validity of all of the argument types.
15671567
class SyclKernelFieldChecker : public SyclKernelFieldHandler {
15681568
bool IsInvalid = false;
1569-
bool IsSIMD = false;
15701569
DiagnosticsEngine &Diag;
1570+
bool IsSIMD = false;
15711571
// Check whether the object should be disallowed from being copied to kernel.
15721572
// Return true if not copyable, false if copyable.
15731573
bool checkNotCopyableToKernel(const FieldDecl *FD, QualType FieldTy) {

0 commit comments

Comments
 (0)