diff --git a/cranelift/src/wasm.rs b/cranelift/src/wasm.rs index efd93df77f..5f986ee5f2 100644 --- a/cranelift/src/wasm.rs +++ b/cranelift/src/wasm.rs @@ -170,7 +170,7 @@ fn handle_module( println!( "Function #{} bytecode size: {} bytes", func_index, - dummy_environ.func_bytecode_sizes[func_index] + dummy_environ.func_bytecode_sizes[def_index] ); } } else {