mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user