aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Timer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Support/Timer.cpp')
-rw-r--r--llvm/lib/Support/Timer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/Timer.cpp b/llvm/lib/Support/Timer.cpp
index ccd78ad..3f0926a 100644
--- a/llvm/lib/Support/Timer.cpp
+++ b/llvm/lib/Support/Timer.cpp
@@ -507,11 +507,11 @@ private:
// Order of these members and initialization below is important. For example
// the DefaultTimerGroup uses the TimerLock. Most of these also depend on the
// options above.
+ std::once_flag InitDeferredFlag;
std::unique_ptr<SignpostEmitter> SignpostsPtr;
std::unique_ptr<sys::SmartMutex<true>> TimerLockPtr;
std::unique_ptr<TimerGroup> DefaultTimerGroupPtr;
std::unique_ptr<Name2PairMap> NamedGroupedTimersPtr;
- std::once_flag InitDeferredFlag;
TimerGlobals &initDeferred() {
std::call_once(InitDeferredFlag, [this]() {
SignpostsPtr = std::make_unique<SignpostEmitter>();