mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 22:02:23 +01:00
- Makes a little more use of `MakeImportedLocIdAndInst` instead of `UncheckedLoc` - Requires use of `MakeImportedLocIdAndInst` with `ImportIRInstId`; previously optional - Relevant `if constexpr` moves to `AddPlaceholderImportedInst`, but is more narrowly scoped there. - Refactors out `AddPlaceholderImportedInstInNoBlock` to reduce how many spots do an explicit `imports().push_back(...)` I'd also considered removing `MakeImportedLocIdAndInst` where possible, but went this route so that changes to the expected parse node wouldn't affect callers. When it's required, `MakeImportedLocIdAndInst` is always there; when it's conditionally present, changing `Parse::NodeId` between enforceable and not-enforceable would require refactoring any callsites that assumed one or the other.