[lldb] Fix building with GCC without asserts

This case was missed in 03604a7840.
This commit is contained in:
Martin Storsjö
2025-04-05 16:53:05 +03:00
parent 68ce637872
commit fcead25550

View File

@@ -27,8 +27,11 @@
} while (0)
#else
#define lldbassert(x) \
lldb_private::_lldb_assert(static_cast<bool>(x), #x, __FUNCTION__, __FILE__, \
__LINE__)
do { \
static std::once_flag _once_flag; \
lldb_private::_lldb_assert(static_cast<bool>(x), #x, __FUNCTION__, \
__FILE__, __LINE__, _once_flag); \
} while (0)
#endif
#endif