| ... | ... | @@ -5057,7 +5057,7 @@ static TypeTableEntry *ir_analyze_ref(IrAnalyze *ira, IrInstruction *source_inst |
| 5057 | 5057 | return ira->codegen->builtin_types.entry_invalid; |
| 5058 | 5058 | |
| 5059 | 5059 | bool is_inline = ir_should_inline(&ira->new_irb); |
| 5060 | | if (is_inline || value->static_value.special != ConstValSpecialRuntime) { |
| 5060 | if (is_inline || instr_is_comptime(value)) { |
| 5061 | 5061 | ConstExprValue *val = ir_resolve_const(ira, value, UndefBad); |
| 5062 | 5062 | if (!val) |
| 5063 | 5063 | return ira->codegen->builtin_types.entry_invalid; |
| ... | ... | @@ -6770,7 +6770,7 @@ static TypeTableEntry *ir_analyze_decl_ref(IrAnalyze *ira, IrInstruction *source |
| 6770 | 6770 | const_val->data.x_type = tld_container->type_entry; |
| 6771 | 6771 | |
| 6772 | 6772 | bool ptr_is_const = true; |
| 6773 | | return ir_analyze_const_ptr(ira, source_instruction, const_val, tld_container->type_entry, |
| 6773 | return ir_analyze_const_ptr(ira, source_instruction, const_val, ira->codegen->builtin_types.entry_type, |
| 6774 | 6774 | depends_on_compile_var, ConstPtrSpecialNone, ptr_is_const); |
| 6775 | 6775 | } |
| 6776 | 6776 | case TldIdTypeDef: |
| ... | ... | @@ -6785,7 +6785,7 @@ static TypeTableEntry *ir_analyze_decl_ref(IrAnalyze *ira, IrInstruction *source |
| 6785 | 6785 | const_val->data.x_type = tld_typedef->type_entry; |
| 6786 | 6786 | |
| 6787 | 6787 | bool ptr_is_const = true; |
| 6788 | | return ir_analyze_const_ptr(ira, source_instruction, const_val, tld_typedef->type_entry, |
| 6788 | return ir_analyze_const_ptr(ira, source_instruction, const_val, ira->codegen->builtin_types.entry_type, |
| 6789 | 6789 | depends_on_compile_var, ConstPtrSpecialNone, ptr_is_const); |
| 6790 | 6790 | } |
| 6791 | 6791 | } |