Complete all pointer types. (#6340)

Completing a pointer type is trivial, but we still need to do it, and
fail to do so in a few places, which can lead to crashes during
lowering. Switch to completing pointer types when the type is created to
avoid the issue.
This commit is contained in:
Richard Smith
2025-11-08 00:45:12 +00:00
committed by GitHub
parent 13a16270dc
commit dfd9946dc2
6 changed files with 77 additions and 12 deletions
+1 -1
View File
@@ -236,7 +236,7 @@ auto GetFacetType(Context& context, const SemIR::FacetTypeInfo& info)
auto GetPointerType(Context& context, SemIR::TypeInstId pointee_type_id)
-> SemIR::TypeId {
return GetTypeImpl<SemIR::PointerType>(context, pointee_type_id);
return GetCompleteTypeImpl<SemIR::PointerType>(context, pointee_type_id);
}
auto GetPatternType(Context& context, SemIR::TypeId scrutinee_type_id)