From 2d5faa01af36ab27bb15dedc25ae20c81990bfcf Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 24 Oct 2017 15:28:28 -0700 Subject: [PATCH] Simplify code using the FunctionBuilder helper functions. --- lib/wasm/src/code_translator.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/wasm/src/code_translator.rs b/lib/wasm/src/code_translator.rs index 7c2d8ae15e..d74bbbc688 100644 --- a/lib/wasm/src/code_translator.rs +++ b/lib/wasm/src/code_translator.rs @@ -362,7 +362,7 @@ pub fn translate_operator( state.peekn(num_args), ); state.popn(num_args); - state.pushn(builder.func.dfg.inst_results(call)); + state.pushn(builder.inst_results(call)); } Operator::CallIndirect { index, table_index } => { // `index` is the index of the function's signature and `table_index` is the index of @@ -378,7 +378,7 @@ pub fn translate_operator( state.peekn(num_args), ); state.popn(num_args); - state.pushn(builder.func.dfg.inst_results(call)); + state.pushn(builder.inst_results(call)); } /******************************* Memory management *********************************** * Memory management is handled by environment. It is usually translated into calls to