Add more built-in boolean-specific instructions.

This commit is contained in:
2020-09-10 12:44:41 -07:00
parent 73441dc93b
commit 9fc0ff961d
7 changed files with 40 additions and 5 deletions

View File

@@ -287,6 +287,7 @@ struct case_strategy_bool {
repr_type repr,
std::vector<instruction_ptr>& into) {
branch->expr->compile(env_ptr(new env_offset(1, env)), into);
into.push_back(instruction_ptr(new instruction_slide(1)));
}
size_t case_count(const type* type) {