[WebAssembly] Fix accidental omission from rLLD364367
There was another place where handling for this relocation was missing that was accidentally omitted from rLLD364367, causing the newly added test to fail on the buildbots. llvm-svn: 364371
This commit is contained in:
parent
06036dbc6e
commit
5bb0dcd96e
|
@ -94,6 +94,7 @@ uint32_t ObjFile::calcNewAddend(const WasmRelocation &Reloc) const {
|
|||
switch (Reloc.Type) {
|
||||
case R_WASM_MEMORY_ADDR_LEB:
|
||||
case R_WASM_MEMORY_ADDR_SLEB:
|
||||
case R_WASM_MEMORY_ADDR_REL_SLEB:
|
||||
case R_WASM_MEMORY_ADDR_I32:
|
||||
case R_WASM_FUNCTION_OFFSET_I32:
|
||||
return Reloc.Addend;
|
||||
|
|
Loading…
Reference in New Issue