From 93e2158792b4df118e69771cd9615f03d1467544 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Sun, 15 Sep 2024 08:18:44 -0700 Subject: [PATCH] [Instrumentation] Remove extraneous std::move (NFC) --- llvm/include/llvm/Transforms/Instrumentation/CFGMST.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/Transforms/Instrumentation/CFGMST.h b/llvm/include/llvm/Transforms/Instrumentation/CFGMST.h index 682ae877f7ae3..35b3d615e3844 100644 --- a/llvm/include/llvm/Transforms/Instrumentation/CFGMST.h +++ b/llvm/include/llvm/Transforms/Instrumentation/CFGMST.h @@ -280,13 +280,13 @@ template class CFGMST { std::tie(Iter, Inserted) = BBInfos.insert(std::make_pair(Src, nullptr)); if (Inserted) { // Newly inserted, update the real info. - Iter->second = std::move(std::make_unique(Index)); + Iter->second = std::make_unique(Index); Index++; } std::tie(Iter, Inserted) = BBInfos.insert(std::make_pair(Dest, nullptr)); if (Inserted) // Newly inserted, update the real info. - Iter->second = std::move(std::make_unique(Index)); + Iter->second = std::make_unique(Index); AllEdges.emplace_back(new Edge(Src, Dest, W)); return *AllEdges.back(); }