[Lldb-commits] [lldb] r370748 - [lldb] Replace std::call_once() with llvm::call_once()
Michal Gorny via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 3 05:31:24 PDT 2019
Author: mgorny
Date: Tue Sep 3 05:31:24 2019
New Revision: 370748
URL: http://llvm.org/viewvc/llvm-project?rev=370748&view=rev
Log:
[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.
Modified:
lldb/trunk/source/Target/Process.cpp
Modified: lldb/trunk/source/Target/Process.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/Process.cpp?rev=370748&r1=370747&r2=370748&view=diff
==============================================================================
--- lldb/trunk/source/Target/Process.cpp (original)
+++ lldb/trunk/source/Target/Process.cpp Tue Sep 3 05:31:24 2019
@@ -5965,7 +5965,7 @@ UtilityFunction *Process::GetLoadImageUt
llvm::function_ref<std::unique_ptr<UtilityFunction>()> 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();
}
More information about the lldb-commits
mailing list