Skip to content

Commit dc70ead

Browse files
authored
[SYCL][NFC] Fix implicit copying when it's undesired (#10733)
Signed-off-by: Sidorov, Dmitry <[email protected]>
1 parent 4f30e66 commit dc70ead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/SYCLLowerIR/CompileTimePropertiesPass.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ void CompileTimePropertiesPass::parseAlignmentAndApply(
562562

563563
auto Align_val = Align(AttrVal);
564564
// apply alignment attributes to load/store
565-
for (auto Pair : TargetedInstList) {
565+
for (const auto &Pair : TargetedInstList) {
566566
auto *Inst = Pair.first;
567567
auto Op_num = Pair.second;
568568
if (auto *LInst = dyn_cast<LoadInst>(Inst)) {

0 commit comments

Comments
 (0)