diff options
Diffstat (limited to 'gcc/c/c-convert.c')
-rw-r--r-- | gcc/c/c-convert.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/c/c-convert.c b/gcc/c/c-convert.c index 38bacda..95be453 100644 --- a/gcc/c/c-convert.c +++ b/gcc/c/c-convert.c @@ -72,8 +72,7 @@ convert (tree type, tree expr) location_t loc = EXPR_LOCATION (expr); if (type == error_mark_node - || expr == error_mark_node - || TREE_TYPE (expr) == error_mark_node) + || error_operand_p (expr)) return error_mark_node; if ((invalid_conv_diag |