mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-24 07:02:40 +00:00
Add unit tagging to ClangDeclId (#6274)
This commit is contained in:
1 parent
184a39ed8b
commit
53ea894d0d
2 files changed
+10
-9
No files matched your search
@@ -51,6 +51,7 @@ File::File(const Parse::Tree* parse_tree, CheckIRId check_ir_id,
|
||||
// The `2` prevents adding a tag for the global ids
|
||||
// `ImportIRId::{ApiForImpl,Cpp}`.
|
||||
import_irs_(IdTag(check_ir_id.index, 2)),
|
||||
clang_decls_(check_ir_id),
|
||||
// The `+1` prevents adding a tag to the global `NameSpace::PackageInstId`
|
||||
// instruction. It's not a "singleton" instruction, but it's a unique
|
||||
// instruction id that comes right after the singletons.
|
||||
|
||||
Reference in new issue
Block a user