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

Stanislav Gatev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 5 04:58:43 PDT 2022


sgatev accepted this revision.
sgatev added inline comments.


================
Comment at: clang/lib/Analysis/FlowSensitive/Transfer.cpp:537-539
+      auto *Caller = Env.getDeclCtx();
+      Env = Environment(ExitState->Env);
+      Env.setDeclCtx(Caller);
----------------
I believe you'll need to rebase because this has changed: https://github.com/llvm/llvm-project/blob/main/clang/lib/Analysis/FlowSensitive/Transfer.cpp#L567


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