From ff4d2aba3cf6d83db0ad2324a22c46f111a0c240 Mon Sep 17 00:00:00 2001 From: Graham Kelly Date: Sun, 4 Feb 2024 14:45:12 -0500 Subject: [PATCH] invalid funcs --- 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 cc37d8f..a070a02 100644 --- a/src/passes/reorder_funs.rs +++ b/src/passes/reorder_funs.rs @@ -72,6 +72,7 @@ pub fn fixup_orders(m: &mut Module) { i += 1; } assert_eq!(fs.len(),m.funcs.len()); + fs.insert(Func::invalid(),Func::invalid()); reorder_funcs(m, &fs); return; }