mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 05:32:28 +08:00
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user