From c3513b94b0304870db99a34101d2833c39a9ea47 Mon Sep 17 00:00:00 2001 From: Chris Fallin Date: Tue, 18 May 2021 15:16:19 -0700 Subject: [PATCH] Bugfix: don't do a split-at-intermediate-defs split if the first such point is the start of the bundle. --- src/ion/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ion/mod.rs b/src/ion/mod.rs index 96541e5..e3e5e6c 100644 --- a/src/ion/mod.rs +++ b/src/ion/mod.rs @@ -2448,7 +2448,7 @@ impl<'a, F: Function> Env<'a, F> { self.stats.splits_conflicts += 1; log::debug!(" going with last before conflict"); smallvec![last_before_conflict.unwrap()] - } else if def_splits.len() > 0 { + } else if def_splits.len() > 0 && def_splits[0] > bundle_start { log::debug!(" going with non-first def splits: {:?}", def_splits); self.stats.splits_defs += 1; def_splits