[Lldb-commits] [PATCH] D121161: [lldb] Avoid global constructor in LLDBLog.cpp

Jonas Devlieghere via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 8 12:24:22 PST 2022


JDevlieghere added a comment.

In D121161#3367806 <https://reviews.llvm.org/D121161#3367806>, @labath wrote:

> The class has a constexpr constructor. I thought that would be enough to avoid runtime initialization. Is this being flagged by something?

It is getting flagged by -Wglobal-constructor but you're right, it's constexpr and therefore shouldn't. Might be a bug in clang. I'll try to repro with ToT.


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

https://reviews.llvm.org/D121161



More information about the lldb-commits mailing list