summaryrefslogtreecommitdiffstats
path: root/lld/wasm/InputChunks.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2018-01-13 00:22:00 +0000
committerSam Clegg <sbc@chromium.org>2018-01-13 00:22:00 +0000
commit4a379c3dd8caeb265d0cb7dae347a0456ce85d84 (patch)
treed43aedc11258db5873a473e91ed17362a111fcf3 /lld/wasm/InputChunks.cpp
parent4463ae4f6dcb2a59e01e816e2ea0eb9ed8321c9a (diff)
downloadbcm5719-llvm-4a379c3dd8caeb265d0cb7dae347a0456ce85d84.tar.gz
bcm5719-llvm-4a379c3dd8caeb265d0cb7dae347a0456ce85d84.zip
[WebAssembly] Use ArrayRef over raw pointers
Differential Revision: https://reviews.llvm.org/D42013 llvm-svn: 322423
Diffstat (limited to 'lld/wasm/InputChunks.cpp')
-rw-r--r--lld/wasm/InputChunks.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/wasm/InputChunks.cpp b/lld/wasm/InputChunks.cpp
index 5f04eccc835..e87c97b47e9 100644
--- a/lld/wasm/InputChunks.cpp
+++ b/lld/wasm/InputChunks.cpp
@@ -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);
}
OpenPOWER on IntegriCloud