[WebAssembly] Use ArrayRef over raw pointers

Differential Revision: https://reviews.llvm.org/D42013

llvm-svn: 322423
This commit is contained in:
Sam Clegg
2018-01-13 00:22:00 +00:00
parent 4463ae4f6d
commit 4a379c3dd8
3 changed files with 15 additions and 15 deletions

View File

@@ -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);
}