From 9b27fbd19c5618b2f6643bd42d3178b8eba10e2e Mon Sep 17 00:00:00 2001 From: Sam Clegg Date: Tue, 15 Mar 2022 11:36:56 -0700 Subject: [PATCH] [WebAssembly] Fix asan issue from https://reviews.llvm.org/D121349 --- llvm/lib/Object/WasmObjectFile.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/Object/WasmObjectFile.cpp b/llvm/lib/Object/WasmObjectFile.cpp index f53c2a09c140..dfb9e2b3eab2 100644 --- a/llvm/lib/Object/WasmObjectFile.cpp +++ b/llvm/lib/Object/WasmObjectFile.cpp @@ -1535,6 +1535,7 @@ Error WasmObjectFile::parseDataSection(ReadContext &Ctx) { if (Error Err = readInitExpr(Segment.Data.Offset, Ctx)) return Err; } else { + Segment.Data.Offset.Extended = false; Segment.Data.Offset.Inst.Opcode = wasm::WASM_OPCODE_I32_CONST; Segment.Data.Offset.Inst.Value.Int32 = 0; } -- 2.11.4.GIT