| ... | ... | @@ -12070,6 +12070,12 @@ static ZigType *ir_analyze_bit_shift(IrAnalyze *ira, IrInstructionBinOp *bin_op_ |
| 12070 | 12070 | ir_add_error(ira, &bin_op_instruction->base, |
| 12071 | 12071 | buf_sprintf("LHS of shift must be an integer type, or RHS must be compile-time known")); |
| 12072 | 12072 | return ira->codegen->builtin_types.entry_invalid; |
| 12073 | } else if (instr_is_comptime(casted_op2) && bigint_cmp_zero(&casted_op2->value.data.x_bigint) == CmpEQ) { |
| 12074 | IrInstruction *result = ir_build_cast(&ira->new_irb, bin_op_instruction->base.scope, |
| 12075 | bin_op_instruction->base.source_node, op1->value.type, op1, CastOpNoop); |
| 12076 | result->value.type = op1->value.type; |
| 12077 | ir_link_new_instruction(result, &bin_op_instruction->base); |
| 12078 | return result->value.type; |
| 12073 | 12079 | } |
| 12074 | 12080 | |
| 12075 | 12081 | ir_build_bin_op_from(&ira->new_irb, &bin_op_instruction->base, op_id, |