Merge pull request #3520 from alexcrichton/faster-fuzz

Disable `check_label_branch_invariants` in fuzzing
This commit is contained in:
Chris Fallin
2021-11-15 08:05:44 -08:00
committed by GitHub

View File

@@ -334,7 +334,7 @@ impl<I: VCodeInst> MachBuffer<I> {
/// 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();