| ... | ... | @@ -19451,10 +19451,12 @@ static IrInstruction *ir_analyze_instruction_memset(IrAnalyze *ira, IrInstructio |
| 19451 | 19451 | if (type_is_invalid(casted_count->value.type)) |
| 19452 | 19452 | return ira->codegen->invalid_instruction; |
| 19453 | 19453 | |
| 19454 | // TODO test this at comptime with u8 and non-u8 types |
| 19454 | 19455 | if (casted_dest_ptr->value.special == ConstValSpecialStatic && |
| 19455 | 19456 | casted_byte->value.special == ConstValSpecialStatic && |
| 19456 | 19457 | casted_count->value.special == ConstValSpecialStatic && |
| 19457 | | casted_dest_ptr->value.data.x_ptr.special != ConstPtrSpecialHardCodedAddr) |
| 19458 | casted_dest_ptr->value.data.x_ptr.special != ConstPtrSpecialHardCodedAddr && |
| 19459 | casted_dest_ptr->value.data.x_ptr.mut != ConstPtrMutRuntimeVar) |
| 19458 | 19460 | { |
| 19459 | 19461 | ConstExprValue *dest_ptr_val = &casted_dest_ptr->value; |
| 19460 | 19462 | |
| ... | ... | @@ -19573,6 +19575,8 @@ static IrInstruction *ir_analyze_instruction_memcpy(IrAnalyze *ira, IrInstructio |
| 19573 | 19575 | if (type_is_invalid(casted_count->value.type)) |
| 19574 | 19576 | return ira->codegen->invalid_instruction; |
| 19575 | 19577 | |
| 19578 | // TODO test this at comptime with u8 and non-u8 types |
| 19579 | // TODO test with dest ptr being a global runtime variable |
| 19576 | 19580 | if (casted_dest_ptr->value.special == ConstValSpecialStatic && |
| 19577 | 19581 | casted_src_ptr->value.special == ConstValSpecialStatic && |
| 19578 | 19582 | casted_count->value.special == ConstValSpecialStatic && |