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

Sam Estep via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 28 11:53:49 PDT 2022


samestep 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;
----------------
sgatev wrote:
> 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.
FIXME added; thanks!


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