[PATCH] D116834: [clang][dataflow] Change `transfer` function to update lattice element in place.
Stanislav Gatev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 9 23:13:10 PST 2022
sgatev accepted this revision.
sgatev added inline comments.
This revision is now accepted and ready to land.
================
Comment at: clang/unittests/Analysis/FlowSensitive/TypeErasedDataflowAnalysisTest.cpp:167
- FunctionCallLattice transfer(const Stmt *S, const FunctionCallLattice &E,
- Environment &Env) {
- FunctionCallLattice R = E;
+ void transfer(const Stmt *S, FunctionCallLattice &R, Environment &Env) {
if (auto *C = dyn_cast<CallExpr>(S)) {
----------------
nit: let's call this `E` for consistency.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116834/new/
https://reviews.llvm.org/D116834
More information about the cfe-commits
mailing list