mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-24 15:32:39 +00:00
Refactor LazyImportRef into ImportRefUnused. (#3656)
This makes some changes to the formatter so that ImportRefUnused and ImportRefUsed will both be labeled as "import_ref" with an "unused -> used" argument change in textual IR, but is otherwise not changing logic.
This commit is contained in:
1 parent
7b933a1126
commit
adad286b74
24 files changed
+96
-97
No files matched your search
@@ -52,7 +52,7 @@ class SemIRLocationTranslator
|
||||
|
||||
// If the parse node was invalid, recurse through import references when
|
||||
// possible.
|
||||
if (auto import_ref = cursor_ir->insts().TryGetAs<SemIR::LazyImportRef>(
|
||||
if (auto import_ref = cursor_ir->insts().TryGetAs<SemIR::ImportRefUnused>(
|
||||
cursor_inst_id)) {
|
||||
cursor_ir = cursor_ir->cross_ref_irs().Get(import_ref->ir_id);
|
||||
cursor_inst_id = import_ref->inst_id;
|
||||
|
||||
Reference in new issue
Block a user