[PATCH] D153493: [dataflow] avoid more accidental copies of Environment

Corentin Jabot via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 26 07:23:22 PDT 2023


cor3ntin added a comment.

This seem to produce build failures

  /home/cor3ntin/dev/compilers/LLVM/llvm-project/clang/unittests/Analysis/FlowSensitive/RecordOpsTest.cpp:50:27: error: calling a private constructor of class 'clang::dataflow::Environment'
          Environment Env = getEnvironmentAtAnnotation(Results, "p");
                            ^
  /home/cor3ntin/dev/compilers/LLVM/llvm-project/clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h:556:3: note: declared private here
    Environment(const Environment &) = default;
    ^
  /home/cor3ntin/dev/compilers/LLVM/llvm-project/clang/unittests/Analysis/FlowSensitive/RecordOpsTest.cpp:112:27: error: calling a private constructor of class 'clang::dataflow::Environment'
          Environment Env = getEnvironmentAtAnnotation(Results, "p");
                            ^
  /home/cor3ntin/dev/compilers/LLVM/llvm-project/clang/include/clang/Analysis/FlowSensitive/DataflowEnvironment.h:556:3: note: declared private here
    Environment(const Environment &) = default;
    ^


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D153493



More information about the cfe-commits mailing list