diff options
-rw-r--r-- | lld/wasm/SymbolTable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/wasm/SymbolTable.cpp b/lld/wasm/SymbolTable.cpp index d9a6fa1f04f..108a60a4b3a 100644 --- a/lld/wasm/SymbolTable.cpp +++ b/lld/wasm/SymbolTable.cpp @@ -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]; } |