+2020-05-18 Jason Merrill <jason@redhat.com>
+
+ * call.c (build_over_call): Remove unnecessary
+ cp_stabilize_reference.
+
2020-05-18 Marek Polacek <polacek@redhat.com>
* call.c (add_builtin_candidate): Don't create a builtin overload
else if ((trivial || TREE_CODE (arg) == TARGET_EXPR)
&& !unsafe)
{
- tree to = cp_stabilize_reference (cp_build_fold_indirect_ref (fa));
-
+ tree to = cp_build_fold_indirect_ref (fa);
val = build2 (INIT_EXPR, DECL_CONTEXT (fn), to, arg);
return val;
}
&& DECL_OVERLOADED_OPERATOR_IS (fn, NOP_EXPR)
&& trivial_fn_p (fn))
{
- tree to = cp_stabilize_reference
- (cp_build_fold_indirect_ref (argarray[0]));
+ tree to = cp_build_fold_indirect_ref (argarray[0]);
tree type = TREE_TYPE (to);
tree as_base = CLASSTYPE_AS_BASE (type);
tree arg = argarray[1];
tree array_type, alias_set;
arg2 = TYPE_SIZE_UNIT (as_base);
+ to = cp_stabilize_reference (to);
arg0 = cp_build_addr_expr (to, complain);
array_type = build_array_type (unsigned_char_type_node,