1
0

Fix compiler bug

This commit is contained in:
Jeff 2025-02-03 17:56:11 -05:00
parent 371a061b1c
commit 93f8f31b6d
2 changed files with 1 additions and 5 deletions

View File

@ -697,7 +697,7 @@ impl<'src> Compiler<'src> {
) -> Result<(Operand, bool), CompileError> {
let (argument, push_back) = match instruction.operation() {
Operation::LOAD_CONSTANT => (Operand::Constant(instruction.b_field()), false),
Operation::POINT => (Operand::Register(instruction.a_field()), false),
Operation::POINT => (instruction.b_as_operand(), false),
Operation::LOAD_BOOLEAN
| Operation::LOAD_LIST
| Operation::LOAD_SELF

View File

@ -99,10 +99,6 @@ pub fn load_function(instruction: InstructionBuilder, thread: &mut Thread) {}
pub fn load_self(instruction: InstructionBuilder, thread: &mut Thread) {}
pub fn get_local(instruction: InstructionBuilder, thread: &mut Thread) {}
pub fn set_local(instruction: InstructionBuilder, thread: &mut Thread) {}
pub fn add(instruction: InstructionBuilder, thread: &mut Thread) {}
pub fn subtract(instruction: InstructionBuilder, thread: &mut Thread) {}