[PATCH] D153491: [dataflow] Avoid copying environment
Sam McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 22 12:09:09 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG51717c93e749: [dataflow] Avoid copying environment (authored by sammccall).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153491/new/
https://reviews.llvm.org/D153491
Files:
clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp
Index: clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp
===================================================================
--- clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp
+++ clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp
@@ -269,7 +269,7 @@
// initialize the state of each basic block differently.
MaybeState.emplace(Analysis.typeErasedInitialElement(), AC.InitEnv);
}
- return *MaybeState;
+ return std::move(*MaybeState);
}
/// Built-in transfer function for `CFGStmt`.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153491.533718.patch
Type: text/x-patch
Size: 545 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230622/60a7cdba/attachment-0001.bin>
More information about the cfe-commits
mailing list