File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1022,7 +1022,8 @@ void WasmObjectWriter::writeElemSection(
1022
1022
encodeULEB128 (TableNumber, W->OS ); // the table number
1023
1023
1024
1024
// init expr for starting offset
1025
- W->OS << char (wasm::WASM_OPCODE_I32_CONST);
1025
+ W->OS << char (is64Bit () ? wasm::WASM_OPCODE_I64_CONST
1026
+ : wasm::WASM_OPCODE_I32_CONST);
1026
1027
encodeSLEB128 (InitialTableOffset, W->OS );
1027
1028
W->OS << char (wasm::WASM_OPCODE_END);
1028
1029
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ hidden_func:
110
110
# CHECK-NEXT: - Type: ELEM
111
111
# CHECK-NEXT: Segments:
112
112
# CHECK-NEXT: Offset:
113
- # CHECK-NEXT: Opcode: I32_CONST
113
+ # CHECK-NEXT: Opcode: I64_CONST
114
114
# CHECK-NEXT: Value: 1
115
115
# CHECK-NEXT: Functions: [ 5 ]
116
116
# CHECK-NEXT: - Type: DATACOUNT
You can’t perform that action at this time.
0 commit comments