(invert_truthvalue): Check for ERROR_MARK input.

From-SVN: r4864
This commit is contained in:
Jim Wilson 1993-07-06 13:48:51 -07:00
parent 22291e2f95
commit 8ac1abdf6a

View File

@ -2076,6 +2076,9 @@ invert_truthvalue (arg)
tree type = TREE_TYPE (arg); tree type = TREE_TYPE (arg);
enum tree_code code = TREE_CODE (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 /* If this is a comparison, we can simply invert it, except for
floating-point non-equality comparisons, in which case we just floating-point non-equality comparisons, in which case we just
enclose a TRUTH_NOT_EXPR around what we have. */ enclose a TRUTH_NOT_EXPR around what we have. */