Skip to content

Commit a81a4b2

Browse files
committed
[lldb] Fix building with lldb::once_flag != std::once_flag
This fixes build breakage on e.g. mingw platforms since ffa2f53. The Debugger::ReportWarning function takes a pointer to a std::once_flag. On many platforms, llvm::once_flag is a typedef for std::once_flag, but on others, llvm::once_flag is a custom reimplementation.
1 parent d37d057 commit a81a4b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/include/lldb/Core/SourceManager.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class SourceManager {
7474

7575
const Checksum &GetChecksum() const { return m_checksum; }
7676

77-
llvm::once_flag &GetChecksumWarningOnceFlag() {
77+
std::once_flag &GetChecksumWarningOnceFlag() {
7878
return m_checksum_warning_once_flag;
7979
}
8080

@@ -92,7 +92,7 @@ class SourceManager {
9292
Checksum m_checksum;
9393

9494
/// Once flag for emitting a checksum mismatch warning.
95-
llvm::once_flag m_checksum_warning_once_flag;
95+
std::once_flag m_checksum_warning_once_flag;
9696

9797
// Keep the modification time that this file data is valid for
9898
llvm::sys::TimePoint<> m_mod_time;

0 commit comments

Comments
 (0)