Fix an incorrect index in "cton-util wasm -s".

This commit is contained in:
Dan Gohman
2018-03-27 21:11:24 -07:00
parent 0b5bb313cb
commit 7cce4be96a

View File

@@ -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 {