diff options
Diffstat (limited to 'gcc/c-typeck.c')
-rw-r--r-- | gcc/c-typeck.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-typeck.c b/gcc/c-typeck.c index 1b0e33a7946..ec145334afa 100644 --- a/gcc/c-typeck.c +++ b/gcc/c-typeck.c @@ -7450,7 +7450,7 @@ c_process_expr_stmt (tree expr) if (DECL_P (expr) || CONSTANT_CLASS_P (expr)) expr = build1 (NOP_EXPR, TREE_TYPE (expr), expr); - if (EXPR_P (expr)) + if (CAN_HAVE_LOCATION_P (expr)) SET_EXPR_LOCATION (expr, input_location); return expr; @@ -7587,7 +7587,7 @@ c_finish_stmt_expr (tree body) { /* Do not warn if the return value of a statement expression is unused. */ - if (EXPR_P (last)) + if (CAN_HAVE_LOCATION_P (last)) TREE_NO_WARNING (last) = 1; return last; } |