From 7cce4be96a6021c38a50cfd26d285f69a8a7b99c Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 27 Mar 2018 21:11:24 -0700 Subject: [PATCH] Fix an incorrect index in "cton-util wasm -s". --- cranelift/src/wasm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {