fold-const.c (maybe_canonicalize_comparison): Fix code to match comment.
authorRichard Guenther <rguenther@suse.de>
Sat, 28 Oct 2006 20:36:54 +0000 (20:36 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sat, 28 Oct 2006 20:36:54 +0000 (20:36 +0000)
2006-10-28  Richard Guenther  <rguenther@suse.de>

* fold-const.c (maybe_canonicalize_comparison): Fix code
to match comment.

From-SVN: r118110

gcc/ChangeLog
gcc/fold-const.c

index cfa63d96af108939394bb6466cadf72ca4fea9db..cd406c62b12965f9d7d1ac0281bb4090b34fa37c 100644 (file)
@@ -1,3 +1,8 @@
+2006-10-28  Richard Guenther  <rguenther@suse.de>
+
+       * fold-const.c (maybe_canonicalize_comparison): Fix code
+       to match comment.
+
 2006-10-28  Uros Bizjak  <uros@kss-loka.si>
 
        * config/i386/i386.h (GENERAL_REGNO_P): Use STACK_POINTER_REGNUM.
index 32e64c99e1f4ec57d2c662201db374dc1a1e2b36..8e3c97ae91e3766174945b017c225ffcdf1216e7 100644 (file)
@@ -7855,7 +7855,7 @@ maybe_canonicalize_comparison (enum tree_code code, tree type,
      but that causes problems elsewhere.  */
   if ((flag_wrapv || flag_trapv)
       || (TYPE_UNSIGNED (TREE_TYPE (arg0))
-         && !POINTER_TYPE_P (TREE_TYPE (arg0))))
+         || POINTER_TYPE_P (TREE_TYPE (arg0))))
     return NULL_TREE;
 
   /* Try canonicalization by simplifying arg0.  */