- Compiler crash using ?? with a void? macro #2973

This commit is contained in:
Christoffer Lerno
2026-02-23 23:28:32 +01:00
parent ec65c5761e
commit d2f046780d
3 changed files with 19 additions and 1 deletions

View File

@@ -3921,7 +3921,7 @@ static void llvm_emit_else(GenContext *c, BEValue *be_value, Expr *expr)
assert(success_end_block && else_block_exit);
// We might have a void here
if (!real_value.value)
if (!real_value.value || LLVMIsUndef(real_value.value))
{
assert(type_flatten(expr->type) == type_void);
assert(!else_value.value);