summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2019-09-03 12:31:24 +0000
committerMichal Gorny <mgorny@gentoo.org>2019-09-03 12:31:24 +0000
commit3276fffc170037dbb5cf9df41bfcdf62d4fc318b (patch)
tree1706ca5bd1493a288179446a719f6e28bd760300 /lldb
parent489cc589c557813fa92a71c1a141939c52574713 (diff)
downloadbcm5719-llvm-3276fffc170037dbb5cf9df41bfcdf62d4fc318b.tar.gz
bcm5719-llvm-3276fffc170037dbb5cf9df41bfcdf62d4fc318b.zip
[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
Diffstat (limited to 'lldb')
-rw-r--r--lldb/source/Target/Process.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Target/Process.cpp b/lldb/source/Target/Process.cpp
index e3875503989..95b84b33002 100644
--- a/lldb/source/Target/Process.cpp
+++ b/lldb/source/Target/Process.cpp
@@ -5965,7 +5965,7 @@ UtilityFunction *Process::GetLoadImageUtilityFunction(
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();
}
OpenPOWER on IntegriCloud