diff options
| author | gingerBill <bill@gingerbill.org> | 2020-01-16 10:00:14 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2020-01-16 10:00:14 +0000 |
| commit | 159150c6d9a7d421c0d58bd582847104799606d4 (patch) | |
| tree | f3e3b9b6763feba9ea24b2b5cfe2016927c8f53f /src/ir.cpp | |
| parent | 527b39ce2b6cd9ef20af7a04c81017af809c2cdb (diff) | |
Allow not_in as keyword over notin, but still allow notin to work
Diffstat (limited to 'src/ir.cpp')
| -rw-r--r-- | src/ir.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ir.cpp b/src/ir.cpp index 04c57c37b..b23c81e78 100644 --- a/src/ir.cpp +++ b/src/ir.cpp @@ -7302,7 +7302,7 @@ irValue *ir_build_expr_internal(irProcedure *proc, Ast *expr) { case Token_in: - case Token_notin: { + case Token_not_in: { irValue *left = ir_build_expr(proc, be->left); Type *type = default_type(tv.type); irValue *right = ir_build_expr(proc, be->right); @@ -7313,7 +7313,7 @@ irValue *ir_build_expr_internal(irProcedure *proc, Ast *expr) { if (be->op.kind == Token_in) { ir_emit_comment(proc, str_lit("map in")); } else { - ir_emit_comment(proc, str_lit("map notin")); + ir_emit_comment(proc, str_lit("map not_in")); } irValue *addr = ir_address_from_load_or_generate_local(proc, right); @@ -7337,7 +7337,7 @@ irValue *ir_build_expr_internal(irProcedure *proc, Ast *expr) { if (be->op.kind == Token_in) { ir_emit_comment(proc, str_lit("bit_set in")); } else { - ir_emit_comment(proc, str_lit("bit_set notin")); + ir_emit_comment(proc, str_lit("bit_set not_in")); } Type *key_type = rt->BitSet.elem; |