Skip to content

Commit 29d7e52

Browse files
authored
Add unit tagging to ImportCppId (#6288)
Another case of an id that isn't used in SemIR, but seems valuable to tag them just in case they evolve such a use.
1 parent eed21f6 commit 29d7e52

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
@@ -51,6 +51,7 @@ File::File(const Parse::Tree* parse_tree, CheckIRId check_ir_id,
5151
// The `2` prevents adding a tag for the global ids
5252
// `ImportIRId::{ApiForImpl,Cpp}`.
5353
import_irs_(IdTag(check_ir_id.index, 2)),
54+
import_cpps_(check_ir_id),
5455
clang_decls_(check_ir_id),
5556
// The `+1` prevents adding a tag to the global `NameSpace::PackageInstId`
5657
// instruction. It's not a "singleton" instruction, but it's a unique

0 commit comments

Comments
 (0)