forked from OSchip/llvm-project
[WebAssembly] Fix typo
Patch by Nicholas Wilson llvm-svn: 321097
This commit is contained in:
parent
5b1216c41e
commit
f738bccd76
|
@ -88,8 +88,8 @@ static const WasmSignature *getFunctionSig(const ObjFile &Obj,
|
||||||
const WasmImport &Import = WasmObj->imports()[Sym.ImportIndex];
|
const WasmImport &Import = WasmObj->imports()[Sym.ImportIndex];
|
||||||
FunctionType = Import.SigIndex;
|
FunctionType = Import.SigIndex;
|
||||||
} else {
|
} else {
|
||||||
uint32_t FuntionIndex = Sym.ElementIndex - Obj.NumFunctionImports();
|
uint32_t FunctionIndex = Sym.ElementIndex - Obj.NumFunctionImports();
|
||||||
FunctionType = WasmObj->functionTypes()[FuntionIndex];
|
FunctionType = WasmObj->functionTypes()[FunctionIndex];
|
||||||
}
|
}
|
||||||
return &WasmObj->types()[FunctionType];
|
return &WasmObj->types()[FunctionType];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue