[NFC] Fix call to lldb RegisterValue constructor
authorJordan Rupprecht <rupprecht@google.com>
Tue, 3 Nov 2020 21:24:06 +0000 (13:24 -0800)
committerJordan Rupprecht <rupprecht@google.com>
Tue, 3 Nov 2020 21:24:06 +0000 (13:24 -0800)
lldb/source/Plugins/ABI/ARC/ABISysV_arc.cpp

index 540270f..be85867 100644 (file)
@@ -272,7 +272,8 @@ bool ABISysV_arc::PrepareTrivialCall(Thread &thread, addr_t sp, addr_t pc,
         reg_value[byte_index++] = 0;
       }
 
         reg_value[byte_index++] = 0;
       }
 
-      RegisterValue reg_val_obj(reg_value, reg_size, eByteOrderLittle);
+      RegisterValue reg_val_obj(llvm::makeArrayRef(reg_value, reg_size),
+                                eByteOrderLittle);
       if (!reg_ctx->WriteRegister(
             reg_ctx->GetRegisterInfo(eRegisterKindGeneric, reg_index),
             reg_val_obj))
       if (!reg_ctx->WriteRegister(
             reg_ctx->GetRegisterInfo(eRegisterKindGeneric, reg_index),
             reg_val_obj))