diff options
author | Jason Merrill <jason@redhat.com> | 2020-09-02 17:53:24 -0400 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-09-04 13:56:32 -0400 |
commit | f923c40f9baba19e58f65afa7e5572f08cee93ff (patch) | |
tree | 3ffa37fa13167b30bee31561562997b0a0e6a839 /gcc | |
parent | 46a58c779af3055a4b10b285a1f4be28abe4351c (diff) | |
download | gcc-f923c40f9baba19e58f65afa7e5572f08cee93ff.zip gcc-f923c40f9baba19e58f65afa7e5572f08cee93ff.tar.gz gcc-f923c40f9baba19e58f65afa7e5572f08cee93ff.tar.bz2 |
c++: Use iloc_sentinel in mark_use.
gcc/cp/ChangeLog:
* expr.c (mark_use): Use iloc_sentinel.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/cp/expr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/cp/expr.c b/gcc/cp/expr.c index a6ab96a..aa60593 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<location_t> 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)))) |