[PATCH] D131065: [clang][dataflow] Store DeclContext of block being analysed in Environment if available.

Sam Estep via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 3 05:07:16 PDT 2022


samestep added inline comments.


================
Comment at: clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp:216
 
   const auto *FuncDecl = Call->getDirectCallee();
   assert(FuncDecl != nullptr);
----------------
I think you need to set the `DeclCtx` field here (or at least, somewhere in this method).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D131065



More information about the cfe-commits mailing list