mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-05 01:56:16 +00:00
Fix a const_cast related warning in GCC in the C API for libLTO
From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263870 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
991382f4d8
commit
8ff9043ade
@ -469,7 +469,7 @@ LTOObjectBuffer thinlto_module_get_object(thinlto_code_gen_t cg,
|
||||
unsigned int index) {
|
||||
assert(index < unwrap(cg)->getProducedBinaries().size() && "Index overflow");
|
||||
auto &MemBuffer = unwrap(cg)->getProducedBinaries()[index];
|
||||
return LTOObjectBuffer{(void *)MemBuffer->getBufferStart(),
|
||||
return LTOObjectBuffer{const_cast<char *>(MemBuffer->getBufferStart()),
|
||||
MemBuffer->getBufferSize()};
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user