OSDN Git Service

(invert_truthvalue): Check for ERROR_MARK input.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Jul 1993 20:48:51 +0000 (20:48 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 6 Jul 1993 20:48:51 +0000 (20:48 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4864 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/fold-const.c

index d03ae53..f6d86ad 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.  */