From 492ebc7cabe5291eccccf5c75c324b66e14f1bf3 Mon Sep 17 00:00:00 2001 From: Graham Kelly Date: Sun, 4 Feb 2024 14:37:03 -0500 Subject: [PATCH] fix step 1 --- src/passes/reorder_funs.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/passes/reorder_funs.rs b/src/passes/reorder_funs.rs index bc394f8..6f41d4b 100644 --- a/src/passes/reorder_funs.rs +++ b/src/passes/reorder_funs.rs @@ -67,6 +67,7 @@ pub fn fixup_orders(m: &mut Module) { fs.insert(v, Func::new(i)); i += 1; } + assert_eq!(fs.len(),m.funcs.len()); reorder_funcs(m, &fs); return; }