diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-04-11 14:59:11 -0700 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-04-11 14:59:21 -0700 |
commit | 1432b3768aad4cfd95d584077f76c617dcc62978 (patch) | |
tree | b557aef2e4f1c0724abea8435afbf130c1eea6a3 /yjit | |
parent | 91dcce5ed1e44ca2e64936b66699fc8c1c092f5c (diff) | |
download | ruby-1432b3768aad4cfd95d584077f76c617dcc62978.tar.gz |
YJIT: Fix a compilation warning in x86_64
This is used only for arm64's cb.jmp_ptr_bytes().
Diffstat (limited to 'yjit')
-rw-r--r-- | yjit/src/asm/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/yjit/src/asm/mod.rs b/yjit/src/asm/mod.rs index 68c09eb114..d2d6a53889 100644 --- a/yjit/src/asm/mod.rs +++ b/yjit/src/asm/mod.rs @@ -240,6 +240,7 @@ impl CodeBlock { } /// Size of the region in bytes where writes could be attempted. + #[cfg(target = "aarch64")] pub fn virtual_region_size(&self) -> usize { self.mem_block.borrow().virtual_region_size() } |