Fix clang warning in pt.cc
Fixes: gcc/cp/pt.cc:13755:23: warning: suggest braces around initialization of subobject [-Wmissing-braces] tree_vec_map in = { fn, nullptr }; gcc/cp/ChangeLog: * pt.cc (defarg_insts_for): Use braces for subobject.
This commit is contained in:
parent
39be73d07b
commit
029851fe70
@ -13752,7 +13752,7 @@ defarg_insts_for (tree fn)
|
||||
{
|
||||
if (!defarg_inst)
|
||||
defarg_inst = hash_table<tree_vec_map_cache_hasher>::create_ggc (13);
|
||||
tree_vec_map in = { fn, nullptr };
|
||||
tree_vec_map in = { { fn }, nullptr };
|
||||
tree_vec_map **slot
|
||||
= defarg_inst->find_slot_with_hash (&in, DECL_UID (fn), INSERT);
|
||||
if (!*slot)
|
||||
|
Loading…
Reference in New Issue
Block a user