mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user