mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
- Compiler assert when passing returning CT failure immediately rethrown #2689.
This commit is contained in:
@@ -2369,6 +2369,12 @@ static inline void llvm_emit_deref(GenContext *c, BEValue *value, Expr *inner, T
|
||||
break;
|
||||
}
|
||||
llvm_emit_expr(c, value, inner);
|
||||
if (!c->current_block)
|
||||
{
|
||||
value->type = type_void;
|
||||
*value = (BEValue) { .type = type_void, .kind = BE_VALUE, .value = NULL };
|
||||
return;
|
||||
}
|
||||
llvm_value_rvalue(c, value);
|
||||
AlignSize alignment = type_abi_alignment(type);
|
||||
bool is_const = expr_is_const(inner);
|
||||
|
||||
Reference in New Issue
Block a user