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:
Jon Ross-Perkins
2023-11-22 21:43:17 +00:00
committed by GitHub
parent 9154c6410e
commit 5522e4f613
5 changed files with 27 additions and 16 deletions
+3 -3
View File
@@ -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