Skip to content

Commit 00e4575

Browse files
[Instrumentation] Remove extraneous std::move (NFC) (#108764)
1 parent e523f4e commit 00e4575

File tree

1 file changed

+2
-2
lines changed
  • llvm/include/llvm/Transforms/Instrumentation

1 file changed

+2
-2
lines changed

llvm/include/llvm/Transforms/Instrumentation/CFGMST.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,13 +280,13 @@ template <class Edge, class BBInfo> class CFGMST {
280280
std::tie(Iter, Inserted) = BBInfos.insert(std::make_pair(Src, nullptr));
281281
if (Inserted) {
282282
// Newly inserted, update the real info.
283-
Iter->second = std::move(std::make_unique<BBInfo>(Index));
283+
Iter->second = std::make_unique<BBInfo>(Index);
284284
Index++;
285285
}
286286
std::tie(Iter, Inserted) = BBInfos.insert(std::make_pair(Dest, nullptr));
287287
if (Inserted)
288288
// Newly inserted, update the real info.
289-
Iter->second = std::move(std::make_unique<BBInfo>(Index));
289+
Iter->second = std::make_unique<BBInfo>(Index);
290290
AllEdges.emplace_back(new Edge(Src, Dest, W));
291291
return *AllEdges.back();
292292
}

0 commit comments

Comments
 (0)