[WebAssembly] Fix typo

Patch by Nicholas Wilson

llvm-svn: 321097
This commit is contained in:
Sam Clegg 2017-12-19 18:36:31 +00:00
parent 5b1216c41e
commit f738bccd76

View File

@ -88,8 +88,8 @@ static const WasmSignature *getFunctionSig(const ObjFile &Obj,
const WasmImport &Import = WasmObj->imports()[Sym.ImportIndex];
FunctionType = Import.SigIndex;
} else {
uint32_t FuntionIndex = Sym.ElementIndex - Obj.NumFunctionImports();
FunctionType = WasmObj->functionTypes()[FuntionIndex];
uint32_t FunctionIndex = Sym.ElementIndex - Obj.NumFunctionImports();
FunctionType = WasmObj->functionTypes()[FunctionIndex];
}
return &WasmObj->types()[FunctionType];
}