diff options
Diffstat (limited to 'yjit/src/backend/ir.rs')
-rw-r--r-- | yjit/src/backend/ir.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/yjit/src/backend/ir.rs b/yjit/src/backend/ir.rs index bdefe1c6bc..2d68936db1 100644 --- a/yjit/src/backend/ir.rs +++ b/yjit/src/backend/ir.rs @@ -251,6 +251,12 @@ impl From<u64> for Opnd { } } +impl From<i64> for Opnd { + fn from(value: i64) -> Self { + Opnd::Imm(value.try_into().unwrap()) + } +} + impl From<i32> for Opnd { fn from(value: i32) -> Self { Opnd::Imm(value.try_into().unwrap()) |