llvm.org GIT mirror llvm / 8ff9043
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 Mehdi Amini 3 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
468468 unsigned int index) {
469469 assert(index < unwrap(cg)->getProducedBinaries().size() && "Index overflow");
470470 auto &MemBuffer = unwrap(cg)->getProducedBinaries()[index];
471 return LTOObjectBuffer{(void *)MemBuffer->getBufferStart(),
471 return LTOObjectBuffer{const_cast(MemBuffer->getBufferStart()),
472472 MemBuffer->getBufferSize()};
473473 }
474474