[lldb] [Windows] Fix an incorrect assert in NativeRegisterContextWindows_arm
authorMartin Storsjö <martin@martin.st>
Tue, 14 Sep 2021 18:39:02 +0000 (21:39 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 15 Sep 2021 12:03:20 +0000 (15:03 +0300)
This codepath hadn't been exercised in a build with asserts before.

Differential Revision: https://reviews.llvm.org/D109778

lldb/source/Plugins/Process/Windows/Common/NativeRegisterContextWindows_arm.cpp

index d2b1bc1..5cfd790 100644 (file)
@@ -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);
 }