We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae473e3 commit eb3d5e6Copy full SHA for eb3d5e6
1 file changed
crates/wasm-mutate/src/mutators/codemotion/loop_unrolling.rs
@@ -18,7 +18,7 @@ use crate::{
18
},
19
OperatorAndByteOffset,
20
21
- WasmMutate,
+ Error, WasmMutate,
22
};
23
24
/// This mutator selects a random `loop` construction in a function and tries to unroll it.
@@ -110,6 +110,14 @@ impl LoopUnrollWriter {
110
111
to_fix.insert(idx, Instruction::BrTable(jmpfix.into(), def));
112
}
113
+
114
+ Operator::BrOnCast { .. }
115
+ | Operator::BrOnCastFail { .. }
116
+ | Operator::BrOnNull { .. }
117
+ | Operator::BrOnNonNull { .. } => {
118
+ log::info!("unsupported operator {op:?}");
119
+ return Err(Error::no_mutations_applicable());
120
+ }
121
_ => {}
122
123
0 commit comments