Merge pull request #1944 from odin-lang/load-improvements

Improvements to `#load`
This commit is contained in:
gingerBill
2022-08-15 10:27:53 +01:00
committed by GitHub
9 changed files with 694 additions and 457 deletions
+4
View File
@@ -351,6 +351,10 @@ lbValue lb_emit_try_has_value(lbProcedure *p, lbValue rhs) {
lbValue lb_emit_or_else(lbProcedure *p, Ast *arg, Ast *else_expr, TypeAndValue const &tv) {
if (arg->state_flags & StateFlag_DirectiveWasFalse) {
return lb_build_expr(p, else_expr);
}
lbValue lhs = {};
lbValue rhs = {};
lb_emit_try_lhs_rhs(p, arg, tv, &lhs, &rhs);