aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/WasmObjectFile.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2025-02-04 16:16:17 -0800
committerGitHub <noreply@github.com>2025-02-04 16:16:17 -0800
commit48415777ea6a0367800b3b37493263ff613f57f6 (patch)
tree573d9de476a948a8271d28407a35b09bd8783e56 /llvm/lib/Object/WasmObjectFile.cpp
parent4055be55b8814b31256ca3c8840bc73bbe5e3d0f (diff)
downloadllvm-48415777ea6a0367800b3b37493263ff613f57f6.zip
llvm-48415777ea6a0367800b3b37493263ff613f57f6.tar.gz
llvm-48415777ea6a0367800b3b37493263ff613f57f6.tar.bz2
Revert "[Object][WebAssembly] Fix data segment offsets higher than 2^31 (#125739)" (#125786)
This reverts commit c798a5c4d5c3c8cb21e6001f505d8f44217c2244. This broke bunch of test the emscripten side. Reverting while we investigate.
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
-rw-r--r--llvm/lib/Object/WasmObjectFile.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Object/WasmObjectFile.cpp b/llvm/lib/Object/WasmObjectFile.cpp
index 7815c26..0f6fd56 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 = readVaruint32(Ctx);
+ Expr.Inst.Value.Int32 = readVarint32(Ctx);
break;
case wasm::WASM_OPCODE_I64_CONST:
- Expr.Inst.Value.Int64 = readVaruint64(Ctx);
+ Expr.Inst.Value.Int64 = readVarint64(Ctx);
break;
case wasm::WASM_OPCODE_F32_CONST:
Expr.Inst.Value.Float32 = readFloat32(Ctx);