fold-const.c (fold_binary_op_with_conditional_arg): Fix typo ordering ops from earlie...
authorDavid Edelsohn <edelsohn@gnu.org>
Mon, 7 Mar 2005 21:24:21 +0000 (21:24 +0000)
committerDavid Edelsohn <dje@gcc.gnu.org>
Mon, 7 Mar 2005 21:24:21 +0000 (16:24 -0500)
        * fold-const.c (fold_binary_op_with_conditional_arg): Fix typo
        ordering ops from earlier change.

From-SVN: r96046

gcc/ChangeLog
gcc/fold-const.c

index dc3a09efc8484613ebcacf6076a18d02d1e8132b..ccb32deb92679467482aa00521cf0b40bc5a10c9 100644 (file)
@@ -1,3 +1,8 @@
+2005-03-07  David Edelsohn  <edelsohn@gnu.org>
+
+       * fold-const.c (fold_binary_op_with_conditional_arg): Fix typo
+       ordering ops from earlier change.
+
 2005-03-07  Per Bothner  <per@bothner.com>
 
        Various fixes to allow us to again build if --enable-mapped-location:
index e9fd5521d49f93edb5cc1bbe9fc1d69977584060..be21160303f62d9fac588be3f60ff518179d6230 100644 (file)
@@ -5459,7 +5459,7 @@ fold_binary_op_with_conditional_arg (enum tree_code code,
                                     tree cond, tree arg, int cond_first_p)
 {
   tree cond_type = cond_first_p ? TREE_TYPE (op0) : TREE_TYPE (op1);
-  tree arg_type = cond_first_p ? TREE_TYPE (op0) : TREE_TYPE (op1);
+  tree arg_type = cond_first_p ? TREE_TYPE (op1) : TREE_TYPE (op0);
   tree test, true_value, false_value;
   tree lhs = NULL_TREE;
   tree rhs = NULL_TREE;