Skip to content

Commit b7bf5a7

Browse files
committed
[lldb] Add missing const to NativeRegisterContextLinux_arm
1 parent 0a06ac7 commit b7bf5a7

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
@@ -524,7 +524,7 @@ Status NativeRegisterContextLinux_arm64::WriteAllRegisterValues(
524524
return error;
525525
}
526526

527-
uint8_t *src = data_sp->GetBytes();
527+
const uint8_t *src = data_sp->GetBytes();
528528
if (src == nullptr) {
529529
error.SetErrorStringWithFormat("NativeRegisterContextLinux_arm64::%s "
530530
"DataBuffer::GetBytes() returned a null "

0 commit comments

Comments
 (0)