summaryrefslogtreecommitdiffstats
path: root/lld/wasm/InputChunks.cpp
diff options
context:
space:
mode:
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