Commit 7d02b693be

Andrew Kelley <andrew@ziglang.org>
2025-07-22 01:43:30
Sema: fix missed block OPV
1 parent 85b997b
Changed files (1)
src/Sema.zig
@@ -6562,6 +6562,11 @@ fn resolveAnalyzedBlock(
             } },
         });
     }
+
+    if (try sema.typeHasOnePossibleValue(resolved_ty)) |block_only_value| {
+        return Air.internedToRef(block_only_value.toIntern());
+    }
+
     return merges.block_inst.toRef();
 }