aboutsummaryrefslogtreecommitdiff
path: root/src/check_stmt.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-08-16 11:58:50 +0100
committergingerBill <bill@gingerbill.org>2021-08-16 11:58:50 +0100
commite3fef2dadef2b10342222f0314583f6f53e39ff4 (patch)
tree8c9d02259b75be22736d65d4a595ee933a26a259 /src/check_stmt.cpp
parent4c306a6f9958a01302cf09fdff8f7d4ff143c605 (diff)
Improve parsing for `or_return`; allow `#force_inline foo() or_return;`
Diffstat (limited to 'src/check_stmt.cpp')
-rw-r--r--src/check_stmt.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp
index 6c5da5197..504c23d53 100644
--- a/src/check_stmt.cpp
+++ b/src/check_stmt.cpp
@@ -1456,21 +1456,6 @@ bool all_operands_valid(Array<Operand> const &operands) {
return true;
}
-Ast *strip_or_return_expr(Ast *node) {
- for (;;) {
- if (node == nullptr) {
- return node;
- }
- if (node->kind == Ast_OrReturnExpr) {
- node = node->OrReturnExpr.expr;
- } else if (node->kind == Ast_ParenExpr) {
- node = node->ParenExpr.expr;
- } else {
- return node;
- }
- }
-}
-
void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) {
u32 mod_flags = flags & (~Stmt_FallthroughAllowed);
switch (node->kind) {