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:
Martin Liska 2022-02-21 17:07:17 +01:00
parent 39be73d07b
commit 029851fe70

View File

@ -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)