| ... | @@ -19251,7 +19251,7 @@ static IrInstruction *ir_analyze_instruction_switch_target(IrAnalyze *ira, | ... | @@ -19251,7 +19251,7 @@ static IrInstruction *ir_analyze_instruction_switch_target(IrAnalyze *ira, |
| 19251 | | 19251 | |
| 19252 | ZigType *target_type = target_value_ptr->value.type->data.pointer.child_type; | 19252 | ZigType *target_type = target_value_ptr->value.type->data.pointer.child_type; |
| 19253 | ConstExprValue *pointee_val = nullptr; | 19253 | ConstExprValue *pointee_val = nullptr; |
| 19254 | if (instr_is_comptime(target_value_ptr)) { | 19254 | if (instr_is_comptime(target_value_ptr) && target_value_ptr->value.data.x_ptr.mut != ConstPtrMutRuntimeVar) { |
| 19255 | pointee_val = const_ptr_pointee(ira, ira->codegen, &target_value_ptr->value, target_value_ptr->source_node); | 19255 | pointee_val = const_ptr_pointee(ira, ira->codegen, &target_value_ptr->value, target_value_ptr->source_node); |
| 19256 | if (pointee_val == nullptr) | 19256 | if (pointee_val == nullptr) |
| 19257 | return ira->codegen->invalid_instruction; | 19257 | return ira->codegen->invalid_instruction; |