diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-04-16 15:52:26 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-04-16 15:52:26 -0700 |
| commit | edd75d03e312d6020623df4e06c9bb19c2f217c5 (patch) | |
| tree | 0b886cea99b5c4d268a92f654b8320d9e7419d0a /src/AstGen.zig | |
| parent | adc2aed587d009c0d112063fa0f3d03dedc9e50a (diff) | |
| download | zig-edd75d03e312d6020623df4e06c9bb19c2f217c5.tar.gz zig-edd75d03e312d6020623df4e06c9bb19c2f217c5.zip | |
ZIR: rename decl_val and decl_ref to remove redundant suffix
Diffstat (limited to 'src/AstGen.zig')
| -rw-r--r-- | src/AstGen.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/AstGen.zig b/src/AstGen.zig index 7dde9abf61..303da5c58c 100644 --- a/src/AstGen.zig +++ b/src/AstGen.zig @@ -1276,8 +1276,8 @@ fn blockExprStmts( .cmp_gt, .cmp_neq, .coerce_result_ptr, - .decl_ref_named, - .decl_val_named, + .decl_ref, + .decl_val, .load, .div, .elem_ptr, @@ -4260,9 +4260,9 @@ fn identifier( // depending on the scope, determined by the generic instantiation. const str_index = try gz.identAsString(ident_token); switch (rl) { - .ref, .none_or_ref => return gz.addStrTok(.decl_ref_named, str_index, ident_token), + .ref, .none_or_ref => return gz.addStrTok(.decl_ref, str_index, ident_token), else => { - const result = try gz.addStrTok(.decl_val_named, str_index, ident_token); + const result = try gz.addStrTok(.decl_val, str_index, ident_token); return rvalue(gz, scope, rl, result, ident); }, } |
