[llvm] 576f486 - Fix use-after-move warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 5 06:22:57 PST 2020
Author: Simon Pilgrim
Date: 2020-03-05T14:22:25Z
New Revision: 576f48642daebd080efc9514cc4b7a74c7425086
URL: https://github.com/llvm/llvm-project/commit/576f48642daebd080efc9514cc4b7a74c7425086
DIFF: https://github.com/llvm/llvm-project/commit/576f48642daebd080efc9514cc4b7a74c7425086.diff
LOG: Fix use-after-move warning. NFCI.
Added:
Modified:
llvm/include/llvm/ExecutionEngine/Orc/Speculation.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ExecutionEngine/Orc/Speculation.h b/llvm/include/llvm/ExecutionEngine/Orc/Speculation.h
index 97a3dc365457..8c89fb4fe342 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/Speculation.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/Speculation.h
@@ -192,11 +192,10 @@ class IRSpeculationLayer : public IRLayer {
internToJITSymbols(DenseMap<StringRef, DenseSet<StringRef>> IRNames) {
assert(!IRNames.empty() && "No IRNames received to Intern?");
TargetAndLikelies InternedNames;
- DenseSet<SymbolStringPtr> TargetJITNames;
for (auto &NamePair : IRNames) {
+ DenseSet<SymbolStringPtr> TargetJITNames;
for (auto &TargetNames : NamePair.second)
TargetJITNames.insert(Mangle(TargetNames));
-
InternedNames[Mangle(NamePair.first)] = std::move(TargetJITNames);
}
return InternedNames;
More information about the llvm-commits
mailing list