Update for Cretonne API changes.

This commit is contained in:
Dan Gohman
2017-10-10 10:24:15 -07:00
parent 142b17a3f0
commit 3d6f0f7045
3 changed files with 159 additions and 93 deletions

View File

@@ -53,8 +53,7 @@ pub fn emit_module(
runtime: &wasmstandalone_runtime::Runtime,
) -> Result<(), String> {
debug_assert!(
trans_result.start_index.is_none() ||
trans_result.start_index.unwrap() >= runtime.imported_funcs.len(),
runtime.start_func.is_none() || runtime.start_func.unwrap() >= runtime.imported_funcs.len(),
"imported start functions not supported yet"
);