refactor: remove ReturnValue instruction

This commit is contained in:
2026-07-13 20:31:41 +02:00
parent ff3fce53f5
commit 798287ef47
3 changed files with 1 additions and 15 deletions
-5
View File
@@ -297,11 +297,6 @@ void executor::step() {
pop_frame();
if (m_frames.empty()) m_flags = m_flags | executor_flags::Done;
} break;
case instruction_t::ReturnValue: {
auto value = pop_thing();
pop_frame();
push_thing(std::move(value));
} break;
case instruction_t::PushConstant: throw std::runtime_error("unimplemented");
default: throw std::runtime_error("unknown instruction");
}