diff options
author | Richard Sandiford <rsandifo@redhat.com> | 2004-01-10 12:02:34 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2004-01-10 12:02:34 +0000 |
commit | bb3f5384ba1d5426d1aabe684fe6688c37f50661 (patch) | |
tree | b7f307b27630a0ee41a33275cbadf6f9e3bcb1b6 /gcc/tree.c | |
parent | 7f03f9a39e38eb2962902449931c4219cf55b3c0 (diff) | |
download | gcc-bb3f5384ba1d5426d1aabe684fe6688c37f50661.zip gcc-bb3f5384ba1d5426d1aabe684fe6688c37f50661.tar.gz gcc-bb3f5384ba1d5426d1aabe684fe6688c37f50661.tar.bz2 |
tree.c (get_unwidened): Reorder conditions so that the null pointer check is done first.
* tree.c (get_unwidened): Reorder conditions so that the null pointer
check is done first.
From-SVN: r75639
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4123,10 +4123,10 @@ get_unwidened (tree op, tree for_type) The resulting extension to its nominal type (a fullword type) must fit the same conditions as for other extensions. */ - if (INT_CST_LT_UNSIGNED (TYPE_SIZE (type), TYPE_SIZE (TREE_TYPE (op))) + if (type != 0 + && INT_CST_LT_UNSIGNED (TYPE_SIZE (type), TYPE_SIZE (TREE_TYPE (op))) && (for_type || ! DECL_BIT_FIELD (TREE_OPERAND (op, 1))) - && (! uns || final_prec <= innerprec || unsignedp) - && type != 0) + && (! uns || final_prec <= innerprec || unsignedp)) { win = build (COMPONENT_REF, type, TREE_OPERAND (op, 0), TREE_OPERAND (op, 1)); |