[LLDB] Fix x86_64 build
authorDavid Spickett <david.spickett@linaro.org>
Wed, 12 Oct 2022 09:19:29 +0000 (09:19 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Wed, 12 Oct 2022 09:19:29 +0000 (09:19 +0000)
28e65a6a63ab39be97d1a88fe7b4d0fa2f532643 changed the parameter
type of SetType but I forgot to build on x86 as well as arm64.

lldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_x86_64.cpp

index e23ec49..ba6be23 100644 (file)
@@ -457,7 +457,7 @@ NativeRegisterContextLinux_x86_64::ReadRegister(const RegisterInfo *reg_info,
       // then use the type specified by reg_info rather than the uint64_t
       // default
       if (reg_value.GetByteSize() > reg_info->byte_size)
-        reg_value.SetType(reg_info);
+        reg_value.SetType(*reg_info);
     }
     return error;
   }