From 1bfdabacfeb6ca4e353586ad55b38c410e85c791 Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 24 Apr 2018 18:11:47 +0000 Subject: [PATCH] [WebAssembly] Match llvm-side change to reloc section header Differential Revision: https://reviews.llvm.org/D45795 llvm-svn: 330750 --- lld/wasm/Writer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/wasm/Writer.cpp b/lld/wasm/Writer.cpp index 41aa165..87c0c40 100644 --- a/lld/wasm/Writer.cpp +++ b/lld/wasm/Writer.cpp @@ -380,7 +380,7 @@ void Writer::createRelocSections() { SyntheticSection *Section = createSyntheticSection(WASM_SEC_CUSTOM, Name); raw_ostream &OS = Section->getStream(); - writeUleb128(OS, OSec->Type, "reloc section"); + writeUleb128(OS, i, "reloc section"); writeUleb128(OS, Count, "reloc count"); OSec->writeRelocations(OS); } -- 2.7.4