From: Jason Merrill Date: Wed, 2 Sep 2020 21:53:24 +0000 (-0400) Subject: c++: Use iloc_sentinel in mark_use. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f923c40f9baba19e58f65afa7e5572f08cee93ff;p=gcc.git c++: Use iloc_sentinel in mark_use. gcc/cp/ChangeLog: * expr.c (mark_use): Use iloc_sentinel. --- diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c index a6ab96af614..aa605931f97 100644 --- a/gcc/cp/expr.c +++ b/gcc/cp/expr.c @@ -139,9 +139,7 @@ mark_use (tree expr, bool rvalue_p, bool read_p, break; } } - temp_override l (input_location); - if (loc != UNKNOWN_LOCATION) - input_location = loc; + iloc_sentinel l (loc); expr = process_outer_var_ref (expr, tf_warning_or_error, true); if (!(TREE_TYPE (oexpr) && TYPE_REF_P (TREE_TYPE (oexpr))))