Skip to content

Commit 1aade74

Browse files
authored
Add unit tagging to ExprRegionId (#6272)
This doesn't show up in the raw SemIR dumps (I don't think that's due to a lack of coverage, but due to the fact that ExprRegionId isn't used as an operand of any instructions).
1 parent 53ea894 commit 1aade74

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

toolchain/sem_ir/file.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ File::File(const Parse::Tree* parse_tree, CheckIRId check_ir_id,
6262
constants_(this),
6363
// 1 reserved id for `StructTypeFields::Empty`.
6464
struct_type_fields_(allocator_, IdTag(check_ir_id.index, 1)),
65+
expr_regions_(check_ir_id),
6566
clang_source_locs_(check_ir_id) {
6667
// `type` and the error type are both complete & concrete types.
6768
types_.SetComplete(

0 commit comments

Comments
 (0)