mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[WebAssembly] Add missing SymbolRef update from rL352551
This change broke some MC tests which are now fixed. Differential Revision: https://reviews.llvm.org/D57424 llvm-svn: 352573
This commit is contained in:
parent
40f94f083c
commit
6db249633f
@ -1422,8 +1422,8 @@ symbol_iterator WasmObjectFile::getRelocationSymbol(DataRefImpl Ref) const {
|
||||
if (Rel.Type == wasm::R_WEBASSEMBLY_TYPE_INDEX_LEB)
|
||||
return symbol_end();
|
||||
DataRefImpl Sym;
|
||||
Sym.d.a = Rel.Index;
|
||||
Sym.d.b = 0;
|
||||
Sym.d.a = 1;
|
||||
Sym.d.b = Rel.Index;
|
||||
return symbol_iterator(SymbolRef(Sym, this));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user