[libcxx-commits] [PATCH] D60830: [libc++] Use the no_destroy attribute to avoid destroying debug DB statics

Eric Fiselier via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Apr 17 10:23:14 PDT 2019


EricWF added a comment.

It may start being reported as a leak by tooling, in the same way `static T* t = new T` would, which is the other idiomatic way to do this.

If an LLVM tool reports this as a leak, I think we should fix the tool.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D60830





More information about the libcxx-commits mailing list