[PATCH] D130270: [clang][dataflow] Use a dedicated bool to encode which branch was taken

Stanislav Gatev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 28 07:39:55 PDT 2022


sgatev accepted this revision.
sgatev added inline comments.


================
Comment at: clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp:103
   if (Value *MergedVal = MergedEnv.createValue(Type))
     if (Model.merge(Type, *Val1, Env1, *Val2, Env2, *MergedVal, MergedEnv))
       return MergedVal;
----------------
We should probably pass `TookSecondBranch` here so that models can also use it in the implementation of `merge`. Could be in a follow up, but let's leave a FIXME.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130270/new/

https://reviews.llvm.org/D130270



More information about the cfe-commits mailing list