diff options
Diffstat (limited to 'contrib/llvm/tools/lldb/source/lldb-log.cpp')
-rw-r--r-- | contrib/llvm/tools/lldb/source/lldb-log.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/llvm/tools/lldb/source/lldb-log.cpp b/contrib/llvm/tools/lldb/source/lldb-log.cpp index 4311c1ad084f..463de137f623 100644 --- a/contrib/llvm/tools/lldb/source/lldb-log.cpp +++ b/contrib/llvm/tools/lldb/source/lldb-log.cpp @@ -11,6 +11,7 @@ // C Includes // C++ Includes +#include <atomic> // Other libraries and framework includes // Project includes #include "lldb/Interpreter/Args.h" @@ -27,7 +28,7 @@ using namespace lldb_private; // that will construct the static g_lob_sp the first time this function is // called. -static bool g_log_enabled = false; +static std::atomic<bool> g_log_enabled {false}; static Log * g_log = NULL; static Log * GetLog () |