From 3276fffc170037dbb5cf9df41bfcdf62d4fc318b Mon Sep 17 00:00:00 2001 From: Michal Gorny Date: Tue, 3 Sep 2019 12:31:24 +0000 Subject: [PATCH] [lldb] Replace std::call_once() with llvm::call_once() Remove the single instance of std::call_once() in lldbTarget library with llvm::call_once(). The former fails to build on NetBSD when combined with llvm::once_flag (which replaced std::once_flag in r369618), and combining the two is probably generally incorrect anyway. llvm-svn: 370748 --- lldb/source/Target/Process.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp index e387550..95b84b3 100644 --- a/lldb/source/Target/Process.cpp +++ b/lldb/source/Target/Process.cpp @@ -5965,7 +5965,7 @@ UtilityFunction *Process::GetLoadImageUtilityFunction( llvm::function_ref()> factory) { if (platform != GetTarget().GetPlatform().get()) return nullptr; - std::call_once(m_dlopen_utility_func_flag_once, - [&] { m_dlopen_utility_func_up = factory(); }); + llvm::call_once(m_dlopen_utility_func_flag_once, + [&] { m_dlopen_utility_func_up = factory(); }); return m_dlopen_utility_func_up.get(); } -- 2.7.4