mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-30 12:25:03 +01:00
This replaces all invalid node IDs in import_ref.cpp with references to the imported instruction. This splits out ReplaceInstBeforeConstantUse into a separate function when the LocationId is replaced, as for splicing. That's the less common case, whereas others would need to provide the LocationId in order just to not change the value.