diff options
| author | gingerBill <bill@gingerbill.org> | 2021-04-24 15:00:01 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-04-24 15:00:01 +0100 |
| commit | c29b643a58d3d31cae55a58a3efbbe2df5a111ad (patch) | |
| tree | 4b6075e28a70d3ac8d6fa8946f4622a01ebe1b3b /src/check_stmt.cpp | |
| parent | c9b82a21e9a52122a226ecc05c46a29dc8f57dac (diff) | |
Move out some intrinsics into separate procedures in llvm_backend.cpp; Rename `InlineRangeStmt` to `UnrollRangeStmt` (eventually merge the two AST nodes)
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 7d9eefe19..cad2be85b 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -217,7 +217,7 @@ bool check_is_terminating(Ast *node, String const &label) { } case_end; - case_ast_node(rs, InlineRangeStmt, node); + case_ast_node(rs, UnrollRangeStmt, node); return false; case_end; @@ -675,7 +675,7 @@ void add_constant_switch_case(CheckerContext *ctx, Map<TypeAndToken> *seen, Oper } void check_inline_range_stmt(CheckerContext *ctx, Ast *node, u32 mod_flags) { - ast_node(irs, InlineRangeStmt, node); + ast_node(irs, UnrollRangeStmt, node); check_open_scope(ctx, node); Type *val0 = nullptr; @@ -1303,7 +1303,7 @@ void check_block_stmt_for_errors(CheckerContext *ctx, Ast *body) { case Ast_IfStmt: case Ast_ForStmt: case Ast_RangeStmt: - case Ast_InlineRangeStmt: + case Ast_UnrollRangeStmt: case Ast_SwitchStmt: case Ast_TypeSwitchStmt: // TODO(bill): Is this a correct checking system? @@ -1903,7 +1903,7 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) { check_close_scope(ctx); case_end; - case_ast_node(irs, InlineRangeStmt, node); + case_ast_node(irs, UnrollRangeStmt, node); check_inline_range_stmt(ctx, node, mod_flags); case_end; |