fold-const.c (constant_boolean_node): Always create values of the specified type...
* fold-const.c (constant_boolean_node): Always create values of the specified type, don't bother calling truthvalue_conversion. From-SVN: r95237
This commit is contained in:
parent
f6775e78a8
commit
0a9c6fdf03
2 changed files with 5 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-02-18 Roger Sayle <roger@eyesopen.com>
|
||||
|
||||
* fold-const.c (constant_boolean_node): Always create values of the
|
||||
specified type, don't bother calling truthvalue_conversion.
|
||||
|
||||
2005-02-18 Joseph S. Myers <joseph@codesourcery.com>
|
||||
|
||||
* except.c (output_function_exception_table): Call
|
||||
|
|
|
@ -5381,9 +5381,6 @@ constant_boolean_node (int value, tree type)
|
|||
return value ? integer_one_node : integer_zero_node;
|
||||
else if (type == boolean_type_node)
|
||||
return value ? boolean_true_node : boolean_false_node;
|
||||
else if (TREE_CODE (type) == BOOLEAN_TYPE)
|
||||
return lang_hooks.truthvalue_conversion (value ? integer_one_node
|
||||
: integer_zero_node);
|
||||
else
|
||||
return build_int_cst (type, value);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue