mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Add defer catch/try. Fix missing defer invoked on return a > 0 ? Foo.ABC! : 1
This commit is contained in:
@@ -5532,7 +5532,7 @@ static inline void llvm_emit_return_block(GenContext *c, BEValue *be_value, Type
|
||||
|
||||
// Defers? In that case we also use the default behaviour.
|
||||
// We might optimize this later.
|
||||
if (value->return_stmt.cleanup) break;
|
||||
if (value->return_stmt.cleanup || value->return_stmt.cleanup_fail) break;
|
||||
|
||||
Expr *ret_expr = value->return_stmt.expr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user