Skip to content

Commit 91f0d30

Browse files
committed
Fix Wreorder warning coming from AccessorSubscript constructor
1 parent 9ef84c2 commit 91f0d30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/sycl/accessor.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ class accessor_common {
336336

337337
public:
338338
AccessorSubscript(AccType Accessor, id<Dims> IDs)
339-
: MAccessor(Accessor), MIDs(IDs) {}
339+
: MIDs(IDs), MAccessor(Accessor) {}
340340

341341
// Only accessor class is supposed to use this c'tor for the first
342342
// operator[].

0 commit comments

Comments
 (0)