Skip to content

Commit 9894cd5

Browse files
[lldb] Fix a warning
This patch fixes: lldb/source/Plugins/Process/elf-core/ThreadElfCore.cpp:53:32: error: field 'm_thread_reg_ctx_sp' will be initialized after field 'm_thread_name' [-Werror,-Wreorder-ctor]
1 parent 1a08b15 commit 9894cd5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/source/Plugins/Process/elf-core/ThreadElfCore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ using namespace lldb_private;
5050

5151
// Construct a Thread object with given data
5252
ThreadElfCore::ThreadElfCore(Process &process, const ThreadData &td)
53-
: Thread(process, td.tid), m_thread_reg_ctx_sp(), m_thread_name(td.name),
53+
: Thread(process, td.tid), m_thread_name(td.name), m_thread_reg_ctx_sp(),
5454
m_gpregset_data(td.gpregset), m_notes(td.notes),
5555
m_siginfo(std::move(td.siginfo)) {}
5656

0 commit comments

Comments
 (0)