We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d62f4c commit f5bc09aCopy full SHA for f5bc09a
sycl/source/detail/device_image_impl.hpp
@@ -195,8 +195,8 @@ class device_image_impl {
195
// new value while another thread is reading the value to pass it to
196
// JIT compiler.
197
const std::lock_guard<std::mutex> SpecConstLock(MSpecConstAccessMtx);
198
- for (auto SpecConst : MSpecConstSymMap) {
199
- for (auto Desc : SpecConst.second) {
+ for (auto &SpecConst : MSpecConstSymMap) {
+ for (auto &Desc : SpecConst.second) {
200
if (Desc.IsSet)
201
return true;
202
}
0 commit comments