Commit b9e13157 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Remove dead code: tarval_is_long() returns true for mode_P null constants.

[r15844]
parent f83f5665
......@@ -2830,8 +2830,6 @@ ir_node *try_create_Immediate(ir_node *node, char immediate_constraint_type)
offset = get_Const_tarval(cnst);
if(tarval_is_long(offset)) {
val = get_tarval_long(offset);
} else if(tarval_is_null(offset)) {
val = 0;
} else {
ir_fprintf(stderr, "Optimisation Warning: tarval from %+F is not a "
"long?\n", cnst);
......
......@@ -124,8 +124,6 @@ static ir_node *try_create_Immediate(ir_node *node)
tv = get_Const_tarval(node);
if(tarval_is_long(tv)) {
val = get_tarval_long(tv);
} else if(tarval_is_null(tv)) {
val = 0;
} else {
ir_fprintf(stderr, "Optimisation Warning: tarval %+F is not a long?\n",
node);
......@@ -306,8 +304,6 @@ static ir_node* gen_Const(ir_node *node)
if(tarval_is_long(tv)) {
val = get_tarval_long(tv);
} else if(tarval_is_null(tv)) {
val = 0;
} else {
panic("Can't get value of tarval %+F\n", node);
}
......
Markdown is supported
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