Skip to content

Commit b819be5

Browse files
ayylolKornevNikita
authored andcommitted
[SYCL] Use auto & to avoid a string copy (Coverity hit fix) (#17915)
1 parent 12feeaa commit b819be5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/jit_compiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ jit_compiler::fuseKernels(QueueImplPtr Queue,
800800
assert(KernelCmd->isFusable());
801801
auto *KernelCG = static_cast<CGExecKernel *>(&CG);
802802

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

0 commit comments

Comments
 (0)