Commit db38a029 by Jason Merrill Committed by Jason Merrill

PR c++/91165 follow-on tweak

I talked in the PR about possibly stripping the location from the args in
the hash table, since if we use the cache the locations would be wrong, but
didn't actually do anything about that.  Then I noticed that there's already
unshare_expr_without_location...

	* constexpr.c (cxx_eval_call_expression): Use
	unshare_expr_without_location.

From-SVN: r279557
parent 6d4a35ca
2019-12-18 Jason Merrill <jason@redhat.com>
PR c++/91165 follow-on tweak
* constexpr.c (cxx_eval_call_expression): Use
unshare_expr_without_location.
2019-12-19 Julian Brown <julian@codesourcery.com> 2019-12-19 Julian Brown <julian@codesourcery.com>
Maciej W. Rozycki <macro@codesourcery.com> Maciej W. Rozycki <macro@codesourcery.com>
Tobias Burnus <tobias@codesourcery.com> Tobias Burnus <tobias@codesourcery.com>
......
...@@ -2079,7 +2079,7 @@ cxx_eval_call_expression (const constexpr_ctx *ctx, tree t, ...@@ -2079,7 +2079,7 @@ cxx_eval_call_expression (const constexpr_ctx *ctx, tree t,
/* Unshare args going into the hash table to separate them /* Unshare args going into the hash table to separate them
from the caller's context, for better GC and to avoid from the caller's context, for better GC and to avoid
problems with verify_gimple. */ problems with verify_gimple. */
arg = unshare_expr (arg); arg = unshare_expr_without_location (arg);
TREE_VEC_ELT (bound, i) = arg; TREE_VEC_ELT (bound, i) = arg;
} }
/* Don't share a CONSTRUCTOR that might be changed. This is not /* Don't share a CONSTRUCTOR that might be changed. This is not
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment