diff options
author | Maxime Chevalier-Boisvert <maximechevalierb@gmail.com> | 2022-07-12 17:04:09 -0400 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-08-29 08:47:00 -0700 |
commit | 8d743e965e6bf95ea1649839fc1fe2429564c2d9 (patch) | |
tree | 287c95ffa75ede7431599796972e263637d6a980 /yjit/src/core.rs | |
parent | 6e5382780f4c6cdb7eef945898448639071969fc (diff) | |
download | ruby-8d743e965e6bf95ea1649839fc1fe2429564c2d9.tar.gz |
Fix compile errors on arm on the CI (https://github.com/Shopify/ruby/pull/313)
* Fix compile errors on arm on the CI
* Fix typo
Diffstat (limited to 'yjit/src/core.rs')
-rw-r--r-- | yjit/src/core.rs | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/yjit/src/core.rs b/yjit/src/core.rs index 1b90260248..6c7044c843 100644 --- a/yjit/src/core.rs +++ b/yjit/src/core.rs @@ -1584,14 +1584,16 @@ fn make_branch_entry(block: &BlockRef, src_ctx: &Context, gen_fn: BranchGenFn) - /// Generated code calls this function with the SysV calling convention. /// See [get_branch_target]. -extern "sysv64" fn branch_stub_hit( - branch_ptr: *const c_void, - target_idx: u32, - ec: EcPtr, -) -> *const u8 { - with_vm_lock(src_loc!(), || { - branch_stub_hit_body(branch_ptr, target_idx, ec) - }) +c_callable! { + fn branch_stub_hit( + branch_ptr: *const c_void, + target_idx: u32, + ec: EcPtr, + ) -> *const u8 { + with_vm_lock(src_loc!(), || { + branch_stub_hit_body(branch_ptr, target_idx, ec) + }) + } } /// Called by the generated code when a branch stub is executed |