Author: Jordan Rupprecht
Date: 2020-11-03T13:24:06-08:00
New Revision: 33945cdd62c40ea4ce381d4c3d49b22f8a2cc015

URL: 
https://github.com/llvm/llvm-project/commit/33945cdd62c40ea4ce381d4c3d49b22f8a2cc015
DIFF: 
https://github.com/llvm/llvm-project/commit/33945cdd62c40ea4ce381d4c3d49b22f8a2cc015.diff

LOG: [NFC] Fix call to lldb RegisterValue constructor

Added: 
    

Modified: 
    lldb/source/Plugins/ABI/ARC/ABISysV_arc.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/ABI/ARC/ABISysV_arc.cpp 
b/lldb/source/Plugins/ABI/ARC/ABISysV_arc.cpp
index 540270fb9544..be8586722d8f 100644
--- a/lldb/source/Plugins/ABI/ARC/ABISysV_arc.cpp
+++ b/lldb/source/Plugins/ABI/ARC/ABISysV_arc.cpp
@@ -272,7 +272,8 @@ bool ABISysV_arc::PrepareTrivialCall(Thread &thread, addr_t 
sp, addr_t pc,
         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))


        
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to