From 03254b0bb679ae8db75c3b2bef64f27d80776c7b Mon Sep 17 00:00:00 2001 From: "Garcia Orozco, David" Date: Tue, 8 Apr 2025 12:55:32 -0700 Subject: [PATCH] [SYCL] Use `auto &` to avoid a string copy (Coverity hit fix) --- sycl/source/detail/jit_compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/source/detail/jit_compiler.cpp b/sycl/source/detail/jit_compiler.cpp index 3b9441455f295..ec4d4b20763d8 100644 --- a/sycl/source/detail/jit_compiler.cpp +++ b/sycl/source/detail/jit_compiler.cpp @@ -802,7 +802,7 @@ jit_compiler::fuseKernels(QueueImplPtr Queue, assert(KernelCmd->isFusable()); auto *KernelCG = static_cast(&CG); - auto KernelName = KernelCG->MKernelName; + auto &KernelName = KernelCG->MKernelName; if (KernelName.empty()) { printPerformanceWarning( "Cannot fuse kernel with invalid kernel function name");