Skip to content

Commit 8280173

Browse files
d0kJDevlieghere
authored andcommitted
[lldb] Add missing const to NativeRegisterContextLinux_arm
(cherry picked from commit b7bf5a7)
1 parent 8d8f2b9 commit 8280173

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ Status NativeRegisterContextLinux_arm::WriteAllRegisterValues(
231231
return error;
232232
}
233233

234-
uint8_t *src = data_sp->GetBytes();
234+
const uint8_t *src = data_sp->GetBytes();
235235
if (src == nullptr) {
236236
error.SetErrorStringWithFormat("NativeRegisterContextLinux_arm::%s "
237237
"DataBuffer::GetBytes() returned a null "

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ Status NativeRegisterContextLinux_arm64::WriteAllRegisterValues(
545545
return error;
546546
}
547547

548-
uint8_t *src = data_sp->GetBytes();
548+
const uint8_t *src = data_sp->GetBytes();
549549
if (src == nullptr) {
550550
error.SetErrorStringWithFormat("NativeRegisterContextLinux_arm64::%s "
551551
"DataBuffer::GetBytes() returned a null "

0 commit comments

Comments
 (0)