diff --git a/lld/test/wasm/pic-static.ll b/lld/test/wasm/pic-static.ll index 83752f3bdb3361..65b47175865ee8 100644 --- a/lld/test/wasm/pic-static.ll +++ b/lld/test/wasm/pic-static.ll @@ -118,4 +118,4 @@ entry: ; CHECK-NEXT: Mutable: false ; CHECK-NEXT: InitExpr: ; CHECK-NEXT: Opcode: I32_CONST -; CHECK-NEXT: Value: 1024 +; CHECK-NEXT: Value: 0 diff --git a/lld/wasm/Writer.cpp b/lld/wasm/Writer.cpp index fe596257beacf2..5df3ae68e307cd 100644 --- a/lld/wasm/Writer.cpp +++ b/lld/wasm/Writer.cpp @@ -226,8 +226,6 @@ void Writer::layoutMemory() { if (WasmSym::globalBase) WasmSym::globalBase->setVirtualAddress(memoryPtr); - if (WasmSym::definedMemoryBase) - WasmSym::definedMemoryBase->setVirtualAddress(memoryPtr); uint32_t dataStart = memoryPtr;