mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-26 13:41:18 +00: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:
1 parent
3a6fd0306e
commit
d31fc9ad02
12 files changed
+816
-469
No files matched your search
@@ -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