mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Support array types with dependent bounds. (#4751)
Given `N:! i32`, the type `[T; N]` is a valid but dependent array type.
This commit is contained in:
@@ -452,7 +452,7 @@ static auto BuildTypeForInst(FileContext& context, SemIR::ArrayType inst)
|
||||
-> llvm::Type* {
|
||||
return llvm::ArrayType::get(
|
||||
context.GetType(inst.element_type_id),
|
||||
context.sem_ir().GetArrayBoundValue(inst.bound_id));
|
||||
*context.sem_ir().GetArrayBoundValue(inst.bound_id));
|
||||
}
|
||||
|
||||
static auto BuildTypeForInst(FileContext& /*context*/, SemIR::AutoType inst)
|
||||
|
||||
Reference in New Issue
Block a user