@@ -3537,7 +3537,7 @@ Result<> WasmBinaryReader::readInst() {
3537
3537
return builder.makeStructCmpxchg (type, field, order);
3538
3538
}
3539
3539
}
3540
- return Err{" unknown atomic operation" };
3540
+ return Err{" unknown atomic operation " + std::to_string (op) };
3541
3541
}
3542
3542
case BinaryConsts::MiscPrefix: {
3543
3543
auto op = getU32LEB ();
@@ -3597,7 +3597,7 @@ Result<> WasmBinaryReader::readInst() {
3597
3597
return builder.makeStore (2 , offset, align, Type::f32 , mem);
3598
3598
}
3599
3599
}
3600
- return Err{" unknown misc operation" };
3600
+ return Err{" unknown misc operation: " + std::to_string (op) };
3601
3601
}
3602
3602
case BinaryConsts::SIMDPrefix: {
3603
3603
auto op = getU32LEB ();
@@ -4234,7 +4234,7 @@ Result<> WasmBinaryReader::readInst() {
4234
4234
Store64LaneVec128, offset, align, getLaneIndex (2 ), mem);
4235
4235
}
4236
4236
}
4237
- return Err{" unknown SIMD operation" };
4237
+ return Err{" unknown SIMD operation " + std::to_string (op) };
4238
4238
}
4239
4239
case BinaryConsts::GCPrefix: {
4240
4240
auto op = getU32LEB ();
@@ -4377,10 +4377,10 @@ Result<> WasmBinaryReader::readInst() {
4377
4377
case BinaryConsts::ExternConvertAny:
4378
4378
return builder.makeRefAs (ExternConvertAny);
4379
4379
}
4380
- return Err{" unknown GC operation" };
4380
+ return Err{" unknown GC operation " + std::to_string (op) };
4381
4381
}
4382
4382
}
4383
- return Err{" unknown operation" };
4383
+ return Err{" unknown operation " + std::to_string (code) };
4384
4384
}
4385
4385
4386
4386
void WasmBinaryReader::readExports () {
0 commit comments