From f514d3006c2b0d9c4454651ca1f59a5a819293e8 Mon Sep 17 00:00:00 2001 From: Pavel Kosov Date: Thu, 4 May 2023 11:56:14 +0300 Subject: [PATCH] [lldb][test] Fix ctor ordering warning Fix a warning, which was introduced in https://gitee.com/openharmony/third_party_llvm-project/pulls/76 warning: field 'm_trap_handlers' will be initialized after field 'm_container' [-Wreorder-ctor] Issue: https://gitee.com/openharmony/third_party_llvm-project/issues/I6XH4R Signed-off-by: Pavel Kosov --- lldb/source/Target/Platform.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lldb/source/Target/Platform.cpp b/lldb/source/Target/Platform.cpp index 088d6f133117..c914a59ecd8a 100644 --- a/lldb/source/Target/Platform.cpp +++ b/lldb/source/Target/Platform.cpp @@ -270,11 +270,12 @@ ArchSpec Platform::GetAugmentedArchSpec(Platform *platform, llvm::StringRef trip /// Default Constructor Platform::Platform(bool is_host) : m_is_host(is_host), m_os_version_set_while_connected(false), - m_system_arch_set_while_connected(false), m_max_uid_name_len(0), + m_system_arch_set_while_connected(false), m_container(false), + m_max_uid_name_len(0), m_max_gid_name_len(0), m_supports_rsync(false), m_rsync_opts(), m_rsync_prefix(), m_supports_ssh(false), m_ssh_opts(), m_ignores_remote_hostname(false), m_trap_handlers(), - m_container(false), m_calculated_trap_handlers(false), + m_calculated_trap_handlers(false), m_module_cache(std::make_unique()) { Log *log = GetLog(LLDBLog::Object); LLDB_LOGF(log, "%p Platform::Platform()", static_cast(this)); -- Gitee