Skip to content

Commit 5c065f0

Browse files
committed
[lldb][Windows] Fix build with MSVC compiler broken by (#108072)
This patch fixes LLDB Windows build with MSVC compiler. MSVC deletes the default constructor due to virtual inheritance rules. Explicitly define the default constructor in NativeRegisterContextWindows to ensure constructibility.
1 parent 978310f commit 5c065f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ class NativeRegisterContextWindows
2424
CreateHostNativeRegisterContextWindows(const ArchSpec &target_arch,
2525
NativeThreadProtocol &native_thread);
2626

27+
// MSVC compiler deletes the default constructor due to virtual inheritance.
28+
// Explicitly defining it ensures the class remains constructible.
29+
NativeRegisterContextWindows() {}
30+
2731
protected:
2832
lldb::thread_t GetThreadHandle() const;
2933
};

0 commit comments

Comments
 (0)