Skip to content

Commit debfed2

Browse files
authored
[SYCL] Use auto & to avoid a string copy (Coverity hit fix) (#17915)
1 parent 5bf80d8 commit debfed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/jit_compiler.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ jit_compiler::fuseKernels(QueueImplPtr Queue,
802802
assert(KernelCmd->isFusable());
803803
auto *KernelCG = static_cast<CGExecKernel *>(&CG);
804804

805-
auto KernelName = KernelCG->MKernelName;
805+
auto &KernelName = KernelCG->MKernelName;
806806
if (KernelName.empty()) {
807807
printPerformanceWarning(
808808
"Cannot fuse kernel with invalid kernel function name");

0 commit comments

Comments
 (0)