Add call alignment requirement.

This commit is contained in:
Sergey Pepyakin
2018-12-13 16:31:08 +01:00
committed by Dan Gohman
parent 23476e82ff
commit 5511f92088

View File

@@ -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);