search for: c10b192d

Displaying 1 result from an estimated 1 matches for "c10b192d".

2016 Mar 09
2
"Do not use Static Constructors" LLVM Coding Standard rule question
a static local still produces a static dtor, though One of the ways you can get around this is with a deliberate non-cleanup: const foo &getFoo() { static const foo &f = *new foo(); return f; } that way no global dtor runs. Obviously only works if you don't need foo's dtor to run. On Tue, Mar 8, 2016 at 11:42 PM, Craig Topper via llvm-dev < llvm-dev at lists.llvm.org>