Author: Martin Storsjö Date: 2021-09-15T15:03:20+03:00 New Revision: b4133a21cef49edb57cf96bb7d7518099d61e910
URL: https://github.com/llvm/llvm-project/commit/b4133a21cef49edb57cf96bb7d7518099d61e910 DIFF: https://github.com/llvm/llvm-project/commit/b4133a21cef49edb57cf96bb7d7518099d61e910.diff LOG: [lldb] [Windows] Fix an incorrect assert in NativeRegisterContextWindows_arm This codepath hadn't been exercised in a build with asserts before. Differential Revision: https://reviews.llvm.org/D109778 Added: Modified: lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm.cpp Removed: ################################################################################ diff --git a/lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm.cpp b/lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm.cpp index d2b1bc1a13c61..5cfd790c624a3 100644 --- a/lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm.cpp +++ b/lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm.cpp @@ -80,8 +80,8 @@ enum { k_num_register_sets = 2 }; static RegisterInfoInterface * CreateRegisterInfoInterface(const ArchSpec &target_arch) { - assert((HostInfo::GetArchitecture().GetAddressByteSize() == 8) && - "Register setting path assumes this is a 64-bit host"); + assert((HostInfo::GetArchitecture().GetAddressByteSize() == 4) && + "Register setting path assumes this is a 32-bit host"); return new RegisterInfoPOSIX_arm(target_arch); } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits