mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Switch cross references to a ValueStore. (#3414)
As I get ready to add imports, I need an API to add values and this offers a consistent way of doing so.
This commit is contained in:
@@ -658,9 +658,9 @@ class TypeCompleter {
|
||||
auto BuildCrossReferenceValueRepresentation(SemIR::TypeId type_id,
|
||||
SemIR::CrossReference xref) const
|
||||
-> SemIR::ValueRepresentation {
|
||||
auto xref_inst = context_.sem_ir()
|
||||
.GetCrossReferenceIR(xref.ir_id)
|
||||
.insts()
|
||||
auto xref_inst = context_.cross_reference_irs()
|
||||
.Get(xref.ir_id)
|
||||
->insts()
|
||||
.Get(xref.inst_id);
|
||||
|
||||
// The canonical description of a type should only have cross-references
|
||||
|
||||
Reference in New Issue
Block a user