| ... | @@ -1382,20 +1382,8 @@ static TypeTableEntry *analyze_bin_op_expr(CodeGen *g, ImportTableEntry *import, | ... | @@ -1382,20 +1382,8 @@ static TypeTableEntry *analyze_bin_op_expr(CodeGen *g, ImportTableEntry *import, |
| 1382 | case BinOpTypeBinOr: | 1382 | case BinOpTypeBinOr: |
| 1383 | case BinOpTypeBinXor: | 1383 | case BinOpTypeBinXor: |
| 1384 | case BinOpTypeBinAnd: | 1384 | case BinOpTypeBinAnd: |
| 1385 | { | | |
| 1386 | // TODO: don't require i32 | | |
| 1387 | analyze_expression(g, import, context, g->builtin_types.entry_i32, node->data.bin_op_expr.op1); | | |
| 1388 | analyze_expression(g, import, context, g->builtin_types.entry_i32, node->data.bin_op_expr.op2); | | |
| 1389 | return g->builtin_types.entry_i32; | | |
| 1390 | } | | |
| 1391 | case BinOpTypeBitShiftLeft: | 1385 | case BinOpTypeBitShiftLeft: |
| 1392 | case BinOpTypeBitShiftRight: | 1386 | case BinOpTypeBitShiftRight: |
| 1393 | { | | |
| 1394 | // TODO: don't require i32 | | |
| 1395 | analyze_expression(g, import, context, g->builtin_types.entry_i32, node->data.bin_op_expr.op1); | | |
| 1396 | analyze_expression(g, import, context, g->builtin_types.entry_i32, node->data.bin_op_expr.op2); | | |
| 1397 | return g->builtin_types.entry_i32; | | |
| 1398 | } | | |
| 1399 | case BinOpTypeAdd: | 1387 | case BinOpTypeAdd: |
| 1400 | case BinOpTypeSub: | 1388 | case BinOpTypeSub: |
| 1401 | case BinOpTypeMult: | 1389 | case BinOpTypeMult: |