From 4a06b5107cc0e651fcb2e3fb7de74d020d732387 Mon Sep 17 00:00:00 2001 From: NikVolf Date: Wed, 14 Jun 2017 15:47:35 +0300 Subject: [PATCH] actually fix it --- src/optimizer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/optimizer.rs b/src/optimizer.rs index c5b82f1..992c411 100644 --- a/src/optimizer.rs +++ b/src/optimizer.rs @@ -299,7 +299,7 @@ pub fn update_type_index(opcodes: &mut elements::Opcodes, eliminated_indices: &[ for opcode in opcodes.elements_mut().iter_mut() { match opcode { &mut Block(_, ref mut block) | &mut If(_, ref mut block) | &mut Loop(_, ref mut block) => { - update_call_index(block, eliminated_indices) + update_type_index(block, eliminated_indices) }, &mut CallIndirect(ref mut call_index, _) => { let totalle = eliminated_indices.iter().take_while(|i| (**i as u32) < *call_index).count();