[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:
Keno Fischer 2019-06-26 01:26:53 +00:00
parent 06036dbc6e
commit 5bb0dcd96e
1 changed files with 1 additions and 0 deletions

View File

@ -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;