Commit 40a6765d authored by Michael Beck's avatar Michael Beck
Browse files

Allow casts from character mode in the same way as for integers (needed for ia32 backend).

Currently non-symmetric!

[r13443]
parent f9c188d3
...@@ -828,8 +828,9 @@ tarval *tarval_convert_to(tarval *src, ir_mode *m) { ...@@ -828,8 +828,9 @@ tarval *tarval_convert_to(tarval *src, ir_mode *m) {
} }
break; break;
/* cast int to something */ /* cast int/characters to something */
case irms_int_number: case irms_int_number:
case irms_character:
switch (get_mode_sort(m)) { switch (get_mode_sort(m)) {
case irms_int_number: case irms_int_number:
case irms_character: case irms_character:
...@@ -888,8 +889,6 @@ tarval *tarval_convert_to(tarval *src, ir_mode *m) { ...@@ -888,8 +889,6 @@ tarval *tarval_convert_to(tarval *src, ir_mode *m) {
} }
break; break;
case irms_character:
break;
case irms_reference: case irms_reference:
break; break;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment