From d804d8a92ea844e795670f4d0e8a90291d8b936e Mon Sep 17 00:00:00 2001 From: Mark Thom Date: Sat, 17 Dec 2022 11:54:20 -0700 Subject: [PATCH] use proper dynamic arities in JmpByCall and JmpByExecute (#1605, #1606) --- build/instructions_template.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/instructions_template.rs b/build/instructions_template.rs index 3780f2c9..f58dbfed 100644 --- a/build/instructions_template.rs +++ b/build/instructions_template.rs @@ -722,9 +722,9 @@ enum InstructionTemplate { Allocate(usize), // num_frames. #[strum_discriminants(strum(props(Arity = "0", Name = "deallocate")))] Deallocate, - #[strum_discriminants(strum(props(Arity = "3", Name = "jmp_by_call")))] + #[strum_discriminants(strum(props(Arity = "arity", Name = "jmp_by_call")))] JmpByCall(usize, usize), // arity, relative offset. - #[strum_discriminants(strum(props(Arity = "3", Name = "jmp_by_execute")))] + #[strum_discriminants(strum(props(Arity = "arity", Name = "jmp_by_execute")))] JmpByExecute(usize, usize), // arity, relative offset. #[strum_discriminants(strum(props(Arity = "1", Name = "rev_jmp_by")))] RevJmpBy(usize), -- 2.54.0