Skip to content

Commit 82954e2

Browse files
cperkinsintelKornevNikita
authored andcommitted
[SYCL][NFC] small coverity fix (#18289)
coverity wants a reference. not going to argue with it. Signed-off-by: Chris Perkins <[email protected]>
1 parent f77b593 commit 82954e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/kernel_compiler/kernel_compiler_opencl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void loadOclocLibrary(const std::vector<uint32_t> &IPVersionVec) {
9999
}
100100
return true;
101101
};
102-
for (const std::string_view result : OclocPaths) {
102+
for (const std::string_view &result : OclocPaths) {
103103
if (attemptLoad(result))
104104
return; // exit on successful attempt
105105
}

0 commit comments

Comments
 (0)