From f7c80ebbbed31920f8a26fb354bccdb17a45a897 Mon Sep 17 00:00:00 2001 From: "Sidorov, Dmitry" Date: Tue, 8 Aug 2023 07:35:18 -0700 Subject: [PATCH] [NFC] Fix implicit copying when it's undesired Signed-off-by: Sidorov, Dmitry --- llvm/lib/SYCLLowerIR/CompileTimePropertiesPass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/SYCLLowerIR/CompileTimePropertiesPass.cpp b/llvm/lib/SYCLLowerIR/CompileTimePropertiesPass.cpp index bf0c419b4a19d..228953293a4ed 100644 --- a/llvm/lib/SYCLLowerIR/CompileTimePropertiesPass.cpp +++ b/llvm/lib/SYCLLowerIR/CompileTimePropertiesPass.cpp @@ -562,7 +562,7 @@ void CompileTimePropertiesPass::parseAlignmentAndApply( auto Align_val = Align(AttrVal); // apply alignment attributes to load/store - for (auto Pair : TargetedInstList) { + for (const auto &Pair : TargetedInstList) { auto *Inst = Pair.first; auto Op_num = Pair.second; if (auto *LInst = dyn_cast(Inst)) {