Browse Source

Add call alignment requirement.

pull/397/head
Sergey Pepyakin 6 years ago
committed by Dan Gohman
parent
commit
5511f92088
  1. 1
      src/function_body.rs

1
src/function_body.rs

@ -224,6 +224,7 @@ pub fn translate(
let callee_ty = translation_ctx.func_type(function_index);
// TODO: this implementation assumes that this function is locally defined.
// TODO: guarantee 16-byte alignment for calls as required by x86-64 ABI
pass_outgoing_args(&mut ctx, callee_ty.params.len() as u32);
call_direct(&mut ctx, function_index, callee_ty.returns.len() as u32);

Loading…
Cancel
Save