Skip to content

Commit 3678449

Browse files
author
Alexander Batashev
authored
[SYCL] Fix more -Wrange-loop-construct cases (#3657)
1 parent cd02331 commit 3678449

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/source/detail/kernel_bundle_impl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ class kernel_bundle_impl {
289289
MDeviceImages.erase(DevImgIt, MDeviceImages.end());
290290

291291
for (const detail::KernelBundleImplPtr &Bundle : Bundles) {
292-
for (const std::pair<std::string, std::vector<unsigned char>> &SpecConst :
293-
Bundle->MSpecConstValues) {
292+
for (const std::pair<const std::string, std::vector<unsigned char>>
293+
&SpecConst : Bundle->MSpecConstValues) {
294294
set_specialization_constant_raw_value(SpecConst.first.c_str(),
295295
SpecConst.second.data(),
296296
SpecConst.second.size());

0 commit comments

Comments
 (0)