diff options
author | Jim Wilson <wilson@gcc.gnu.org> | 1993-07-06 13:48:51 -0700 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 1993-07-06 13:48:51 -0700 |
commit | 8ac1abdf6a3dc65db23657aa45e0c201eb1a268f (patch) | |
tree | 3bf51745c4a318665c9df587fd0613e3c06c05ec | |
parent | 22291e2f95b19681852cbc2d5ab14b4b5f8af251 (diff) | |
download | gcc-8ac1abdf6a3dc65db23657aa45e0c201eb1a268f.zip gcc-8ac1abdf6a3dc65db23657aa45e0c201eb1a268f.tar.gz gcc-8ac1abdf6a3dc65db23657aa45e0c201eb1a268f.tar.bz2 |
(invert_truthvalue): Check for ERROR_MARK input.
From-SVN: r4864
-rw-r--r-- | gcc/fold-const.c | 3 |
1 files changed, 3 insertions, 0 deletions
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. */ |