Skip to content

Commit 9717cc5

Browse files
[SYCL] Change "static constexpr int" -> "constexpr int" (#6984)
in sycl/source/detail/image_impl.hpp. clang-cl and MSVC produce different exports for this. However, the static here doesn't bring any functional value, so just remove it as a quick solution to align the behavior between two toolchains that could be used to compile the project. The change is expected to be NFC for the MSVC toolchain used in our CI.
1 parent 192af67 commit 9717cc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/image_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class __SYCL_EXPORT image_impl final : public SYCLMemObjT {
220220

221221
// MRange<> is [width], [width,height], or [width,height,depth] (which
222222
// is different than MAccessRange, etc in bufffers)
223-
static constexpr int XTermPos = 0, YTermPos = 1, ZTermPos = 2;
223+
constexpr int XTermPos = 0, YTermPos = 1, ZTermPos = 2;
224224
Desc.image_width = MRange[XTermPos];
225225
Desc.image_height = MDimensions > 1 ? MRange[YTermPos] : 1;
226226
Desc.image_depth = MDimensions > 2 ? MRange[ZTermPos] : 1;

0 commit comments

Comments
 (0)