diff options
author | Maxime Chevalier-Boisvert <maxime.chevalierboisvert@shopify.com> | 2022-06-20 11:50:10 -0400 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-08-29 08:46:57 -0700 |
commit | 57e64f70c0af7a19b4cf68462ea2467286f4e9cb (patch) | |
tree | 4a97f815c3a0c3afc3a9b2115b797bd49d737ad0 /yjit/src/asm | |
parent | eb4c7b4ea55c5a4c593bea4bba9aa1e9093b3447 (diff) | |
download | ruby-57e64f70c0af7a19b4cf68462ea2467286f4e9cb.tar.gz |
Make sure allocated reg size in bits matches insn out size
Diffstat (limited to 'yjit/src/asm')
-rw-r--r-- | yjit/src/asm/x86_64/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yjit/src/asm/x86_64/mod.rs b/yjit/src/asm/x86_64/mod.rs index ca2a2f6e1f..9869b79e23 100644 --- a/yjit/src/asm/x86_64/mod.rs +++ b/yjit/src/asm/x86_64/mod.rs @@ -89,7 +89,7 @@ pub enum X86Opnd } impl X86Reg { - fn sub_reg(&self, num_bits: u8) -> Self { + pub fn sub_reg(&self, num_bits: u8) -> Self { assert!( num_bits == 8 || num_bits == 16 || |