mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 19:07:53 +08:00
[WebAssembly] Use ArrayRef over raw pointers
Differential Revision: https://reviews.llvm.org/D42013 llvm-svn: 322423
This commit is contained in:
@@ -86,7 +86,7 @@ static void applyRelocations(uint8_t *Buf, ArrayRef<OutputRelocation> Relocs) {
|
||||
}
|
||||
|
||||
void InputChunk::writeTo(uint8_t *SectionStart) const {
|
||||
memcpy(SectionStart + getOutputOffset(), getData(), getSize());
|
||||
memcpy(SectionStart + getOutputOffset(), data().data(), data().size());
|
||||
applyRelocations(SectionStart, OutRelocations);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user