| ... | @@ -15092,7 +15092,9 @@ static IrInstruction *ir_resolve_result_raw(IrAnalyze *ira, IrInstruction *suspe | ... | @@ -15092,7 +15092,9 @@ static IrInstruction *ir_resolve_result_raw(IrAnalyze *ira, IrInstruction *suspe |
| 15092 | ZigType *ptr_return_type = get_pointer_to_type(ira->codegen, ira->explicit_return_type, false); | 15092 | ZigType *ptr_return_type = get_pointer_to_type(ira->codegen, ira->explicit_return_type, false); |
| 15093 | result_loc->written = true; | 15093 | result_loc->written = true; |
| 15094 | result_loc->resolved_loc = ir_build_return_ptr(ira, result_loc->source_instruction, ptr_return_type); | 15094 | result_loc->resolved_loc = ir_build_return_ptr(ira, result_loc->source_instruction, ptr_return_type); |
| 15095 | set_up_result_loc_for_inferred_comptime(result_loc->resolved_loc); | 15095 | if (ir_should_inline(ira->old_irb.exec, result_loc->source_instruction->scope)) { |
| | 15096 | set_up_result_loc_for_inferred_comptime(result_loc->resolved_loc); |
| | 15097 | } |
| 15096 | return result_loc->resolved_loc; | 15098 | return result_loc->resolved_loc; |
| 15097 | } | 15099 | } |
| 15098 | case ResultLocIdPeer: { | 15100 | case ResultLocIdPeer: { |
| ... | @@ -15207,9 +15209,6 @@ static IrInstruction *ir_resolve_result_raw(IrAnalyze *ira, IrInstruction *suspe | ... | @@ -15207,9 +15209,6 @@ static IrInstruction *ir_resolve_result_raw(IrAnalyze *ira, IrInstruction *suspe |
| 15207 | parent_ptr_type->data.pointer.is_const, parent_ptr_type->data.pointer.is_volatile, PtrLenSingle, | 15209 | parent_ptr_type->data.pointer.is_const, parent_ptr_type->data.pointer.is_volatile, PtrLenSingle, |
| 15208 | parent_ptr_align, 0, 0, parent_ptr_type->data.pointer.allow_zero); | 15210 | parent_ptr_align, 0, 0, parent_ptr_type->data.pointer.allow_zero); |
| 15209 | | 15211 | |
| 15210 | if (value->value.special == ConstValSpecialRuntime) { | | |
| 15211 | parent_result_loc->value.special = ConstValSpecialRuntime; | | |
| 15212 | } | | |
| 15213 | result_loc->written = true; | 15212 | result_loc->written = true; |
| 15214 | result_loc->resolved_loc = ir_analyze_ptr_cast(ira, suspend_source_instr, parent_result_loc, | 15213 | result_loc->resolved_loc = ir_analyze_ptr_cast(ira, suspend_source_instr, parent_result_loc, |
| 15215 | ptr_type, result_bit_cast->base.source_instruction, false); | 15214 | ptr_type, result_bit_cast->base.source_instruction, false); |
| ... | @@ -15388,7 +15387,7 @@ static bool ir_analyze_fn_call_inline_arg(IrAnalyze *ira, AstNode *fn_proto_node | ... | @@ -15388,7 +15387,7 @@ static bool ir_analyze_fn_call_inline_arg(IrAnalyze *ira, AstNode *fn_proto_node |
| 15388 | casted_arg = arg; | 15387 | casted_arg = arg; |
| 15389 | } | 15388 | } |
| 15390 | | 15389 | |
| 15391 | ConstExprValue *arg_val = ir_resolve_const(ira, casted_arg, UndefBad); | 15390 | ConstExprValue *arg_val = ir_resolve_const(ira, casted_arg, UndefOk); |
| 15392 | if (!arg_val) | 15391 | if (!arg_val) |
| 15393 | return false; | 15392 | return false; |
| 15394 | | 15393 | |