diff --git a/cranelift/codegen/src/machinst/buffer.rs b/cranelift/codegen/src/machinst/buffer.rs index f1f2c2963868..6871e8c47079 100644 --- a/cranelift/codegen/src/machinst/buffer.rs +++ b/cranelift/codegen/src/machinst/buffer.rs @@ -334,7 +334,7 @@ impl MachBuffer { /// times, e.g. after calling `add_{cond,uncond}_branch()` and /// before emitting branch bytes. fn check_label_branch_invariants(&self) { - if !cfg!(debug_assertions) { + if !cfg!(debug_assertions) || cfg!(fuzzing) { return; } let cur_off = self.cur_offset();