[lldb] Update reinterpret_cast in linux/Host.cpp

Fixes error: reinterpret_cast from type ‘const uint8_t*’ {aka ‘const
unsigned char*’} to type ‘char*’ casts away qualifiers
This commit is contained in:
Jonas Devlieghere
2022-04-05 13:50:12 -07:00
parent b4ad3c3891
commit a722dea4af

View File

@@ -133,10 +133,11 @@ static ArchSpec GetELFProcessCPUType(llvm::StringRef exe_path) {
if (!buffer_sp)
return ArchSpec();
uint8_t exe_class = llvm::object::getElfArchType(
{reinterpret_cast<char *>(buffer_sp->GetBytes()),
size_t(buffer_sp->GetByteSize())})
.first;
uint8_t exe_class =
llvm::object::getElfArchType(
{reinterpret_cast<const char *>(buffer_sp->GetBytes()),
size_t(buffer_sp->GetByteSize())})
.first;
switch (exe_class) {
case llvm::ELF::ELFCLASS32: