This commit is contained in:
gingerBill
2021-10-09 19:11:26 +01:00
parent 2a8d4c5bf5
commit 49c761dc6d
+1 -1
View File
@@ -6892,7 +6892,7 @@ ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast *node, Type
} }
if (c->in_defer) { if (c->in_defer) {
error(rs->token, "'or_return' cannot be used within a defer statement"); error(node, "'or_return' cannot be used within a defer statement");
} }
return Expr_Expr; return Expr_Expr;