tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous commit.
authorRichard Guenther <rguenther@suse.de>
Tue, 22 May 2012 11:21:30 +0000 (11:21 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 22 May 2012 11:21:30 +0000 (11:21 +0000)
2012-05-22  Richard Guenther  <rguenther@suse.de>

* tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous
commit.

From-SVN: r187771

gcc/ChangeLog
gcc/tree-cfg.c

index f73965d..4714c31 100644 (file)
@@ -1,5 +1,10 @@
 2012-05-22  Richard Guenther  <rguenther@suse.de>
 
+       * tree-cfg.c (verify_gimple_assign_unary): Fix typo in previous
+       commit.
+
+2012-05-22  Richard Guenther  <rguenther@suse.de>
+
        PR middle-end/53437
        * tree-inline.c (setup_one_parameter): Create a dummy init
        statement for unused parameters when not optimizing.
index 423db1d..cd68f1f 100644 (file)
@@ -3376,8 +3376,8 @@ verify_gimple_assign_unary (gimple stmt)
        /* Allow conversion from integral to offset type and vice versa.  */
        if ((TREE_CODE (lhs_type) == OFFSET_TYPE
             && INTEGRAL_TYPE_P (rhs1_type))
-           || (TREE_CODE (lhs_type) == INTEGER_TYPE
-               && INTEGRAL_TYPE_P (rhs1_type)))
+           || (INTEGRAL_TYPE_P (lhs_type)
+               && TREE_CODE (rhs1_type) == OFFSET_TYPE))
          return false;
 
        /* Otherwise assert we are converting between types of the