Skip to content

Commit

Permalink
Fixed wasmer calls
Browse files Browse the repository at this point in the history
  • Loading branch information
syrusakbary committed Dec 21, 2019
1 parent 1a960a0 commit afcd1d5
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/bin/wasmer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -481,22 +481,11 @@ fn execute_wasi(
let result;

#[cfg(unix)]
let cv_pushed = if let Some(msm) = instance
.module
.runnable_module
.borrow()
.get_module_state_map()
{
let cv_pushed = if let Some(msm) = instance.module.runnable_module.get_module_state_map() {
push_code_version(CodeVersion {
baseline: true,
msm: msm,
base: instance
.module
.runnable_module
.borrow()
.get_code()
.unwrap()
.as_ptr() as usize,
base: instance.module.runnable_module.get_code().unwrap().as_ptr() as usize,
backend: options.backend,
runnable_module: instance.module.runnable_module.clone(),
});
Expand Down

0 comments on commit afcd1d5

Please sign in to comment.