diff options
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
-rw-r--r-- | llvm/lib/Object/WasmObjectFile.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Object/WasmObjectFile.cpp b/llvm/lib/Object/WasmObjectFile.cpp index 0f6fd56..7815c26 100644 --- a/llvm/lib/Object/WasmObjectFile.cpp +++ b/llvm/lib/Object/WasmObjectFile.cpp @@ -201,10 +201,10 @@ static Error readInitExpr(wasm::WasmInitExpr &Expr, Expr.Inst.Opcode = readOpcode(Ctx); switch (Expr.Inst.Opcode) { case wasm::WASM_OPCODE_I32_CONST: - Expr.Inst.Value.Int32 = readVarint32(Ctx); + Expr.Inst.Value.Int32 = readVaruint32(Ctx); break; case wasm::WASM_OPCODE_I64_CONST: - Expr.Inst.Value.Int64 = readVarint64(Ctx); + Expr.Inst.Value.Int64 = readVaruint64(Ctx); break; case wasm::WASM_OPCODE_F32_CONST: Expr.Inst.Value.Float32 = readFloat32(Ctx); |