Skip to content

Commit ed9a14f

Browse files
committed
[lldb] Add missing const to NativeRegisterContextLinux_x86_64
Fixes error: invalid conversion from ‘const uint8_t*’ {aka ‘const unsigned char*’} to ‘uint8_t*’ {aka ‘unsigned char*’}
1 parent f65b0b5 commit ed9a14f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -780,7 +780,7 @@ Status NativeRegisterContextLinux_x86_64::WriteAllRegisterValues(
780780
return error;
781781
}
782782

783-
uint8_t *src = data_sp->GetBytes();
783+
const uint8_t *src = data_sp->GetBytes();
784784
if (src == nullptr) {
785785
error.SetErrorStringWithFormat("NativeRegisterContextLinux_x86_64::%s "
786786
"DataBuffer::GetBytes() returned a null "

0 commit comments

Comments
 (0)