Merge pull request #6934 from tf2spi/6675-patch-load-or-else-diverging

Make diverging or_else inherit load lhs type
This commit is contained in:
gingerBill authored and GitHub committed 2026-07-03 13:07:19 +01:00
commit 55a1876d5b
1 file changed
+1
+1
View File
@@ -9908,6 +9908,7 @@ gb_internal ExprKind check_or_else_expr(CheckerContext *c, Operand *o, Ast *node
if (is_diverging_expr(y.expr)) {
// Allow
y.mode = Addressing_Value;
y.type = x.type;
y_is_diverging = true;
} else {
error_operand_no_value(&y);