Change cast and int rules: constant folding always starts. Promotion using left side on all operands to bit width. Implicit narrowing to max size on right hand side.

This commit is contained in:
Christoffer Lerno
2021-03-15 16:44:09 +01:00
committed by Christoffer Lerno
parent 8a7f37e4d3
commit 07595df412
52 changed files with 1553 additions and 1462 deletions

View File

@@ -105,7 +105,7 @@ static void header_print_type(FILE *file, Type *type)
break;
case TYPE_TYPEDEF:
break;
case TYPE_CTSTR:
case TYPE_STRLIT:
case TYPE_INFERRED_ARRAY:
UNREACHABLE
case TYPE_ARRAY: