From 8ac1abdf6a3dc65db23657aa45e0c201eb1a268f Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Tue, 6 Jul 1993 13:48:51 -0700 Subject: (invert_truthvalue): Check for ERROR_MARK input. From-SVN: r4864 --- gcc/fold-const.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc/fold-const.c') diff --git a/gcc/fold-const.c b/gcc/fold-const.c index d03ae53..f6d86ad 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -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. */ -- cgit v1.1