From c34cc7e5de01d127a573956f9ad3fd823c1a70d3 Mon Sep 17 00:00:00 2001 From: wilson Date: Tue, 6 Jul 1993 20:48:51 +0000 Subject: [PATCH] (invert_truthvalue): Check for ERROR_MARK input. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@4864 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/fold-const.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gcc/fold-const.c b/gcc/fold-const.c index d03ae53bc28..f6d86ada8ae 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. */ -- 2.11.0