[llvm] 00e4575 - [Instrumentation] Remove extraneous std::move (NFC) (#108764)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 15 10:35:35 PDT 2024
Author: Kazu Hirata
Date: 2024-09-15T10:35:31-07:00
New Revision: 00e4575c67ac26102b98cf14c83a1ace4f816d43
URL: https://github.com/llvm/llvm-project/commit/00e4575c67ac26102b98cf14c83a1ace4f816d43
DIFF: https://github.com/llvm/llvm-project/commit/00e4575c67ac26102b98cf14c83a1ace4f816d43.diff
LOG: [Instrumentation] Remove extraneous std::move (NFC) (#108764)
Added:
Modified:
llvm/include/llvm/Transforms/Instrumentation/CFGMST.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Transforms/Instrumentation/CFGMST.h b/llvm/include/llvm/Transforms/Instrumentation/CFGMST.h
index 682ae877f7ae39..35b3d615e3844a 100644
--- a/llvm/include/llvm/Transforms/Instrumentation/CFGMST.h
+++ b/llvm/include/llvm/Transforms/Instrumentation/CFGMST.h
@@ -280,13 +280,13 @@ template <class Edge, class BBInfo> 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<BBInfo>(Index));
+ Iter->second = std::make_unique<BBInfo>(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<BBInfo>(Index));
+ Iter->second = std::make_unique<BBInfo>(Index);
AllEdges.emplace_back(new Edge(Src, Dest, W));
return *AllEdges.back();
}
More information about the llvm-commits
mailing list