Skip to content

Commit

Permalink
[SYCL][NFC] Fix implicit copying when it's undesired (intel#10733)
Browse files Browse the repository at this point in the history
Signed-off-by: Sidorov, Dmitry <dmitry.sidorov@intel.com>
  • Loading branch information
MrSidims authored Aug 10, 2023
1 parent 4f30e66 commit dc70ead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/SYCLLowerIR/CompileTimePropertiesPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<LoadInst>(Inst)) {
Expand Down

0 comments on commit dc70ead

Please sign in to comment.