diff options
author | abhishek-kaushik22 <abhishek.kaushik@intel.com> | 2024-11-21 16:07:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-21 13:37:56 +0530 |
commit | 46f43b6d92e49b80df13e8a537a95767ffbaac9f (patch) | |
tree | b302b3bc1f19f60acb9f3da52cb5853da1c86301 /llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp | |
parent | abb9f9fa06ef22be2b0287b9047d5cfed71d91d4 (diff) | |
download | llvm-46f43b6d92e49b80df13e8a537a95767ffbaac9f.zip llvm-46f43b6d92e49b80df13e8a537a95767ffbaac9f.tar.gz llvm-46f43b6d92e49b80df13e8a537a95767ffbaac9f.tar.bz2 |
[DebugInfo][InstrRef][MIR][GlobalIsel][MachineLICM] NFC Use std::move to avoid copying (#116935)
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp index a9d28a3..748dd0c 100644 --- a/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp +++ b/llvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp @@ -2927,7 +2927,7 @@ std::optional<ValueIDNum> InstrRefBasedLDV::pickOperandPHILoc( SmallVector<LocIdx, 4> NewCandidates; std::set_intersection(CandidateLocs.begin(), CandidateLocs.end(), LocVec.begin(), LocVec.end(), std::inserter(NewCandidates, NewCandidates.begin())); - CandidateLocs = NewCandidates; + CandidateLocs = std::move(NewCandidates); } if (CandidateLocs.empty()) return std::nullopt; |