]> gcc.gnu.org Git - gcc.git/commitdiff
(invert_truthvalue): Check for ERROR_MARK input.
authorJim Wilson <wilson@gcc.gnu.org>
Tue, 6 Jul 1993 20:48:51 +0000 (13:48 -0700)
committerJim Wilson <wilson@gcc.gnu.org>
Tue, 6 Jul 1993 20:48:51 +0000 (13:48 -0700)
From-SVN: r4864

gcc/fold-const.c

index d03ae53bc2844d3ca1a64cd0e2749c681c488d3a..f6d86ada8ae09d1936f84f43402733cecc3aa7f6 100644 (file)
@@ -2076,6 +2076,9 @@ invert_truthvalue (arg)
   tree type = TREE_TYPE (arg);
   enum tree_code code = TREE_CODE (arg);
 
+  if (code == ERROR_MARK)
+    return arg;
+
   /* If this is a comparison, we can simply invert it, except for
      floating-point non-equality comparisons, in which case we just
      enclose a TRUTH_NOT_EXPR around what we have.  */
This page took 0.070981 seconds and 5 git commands to generate.