[PATCH] D129116: ManagedStatic: remove from DebugCounter

David Blaikie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 8 12:38:46 PDT 2022


dblaikie added inline comments.


================
Comment at: llvm/lib/Support/DebugCounter.cpp:72-75
+  static DebugCounterOwner &instance() {
+    static DebugCounterOwner O;
+    return O;
   }
----------------
This might be an unnecessary layer of indirection - the static member could be in `DebugCounter::instance()` directly?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D129116



More information about the llvm-commits mailing list