Commit 951c9e90 by Jason Merrill Committed by Jason Merrill

* hash-map.h, hash-table.h: Make copy constructors explicit.

From-SVN: r231658
parent 57e8ab24
2015-12-15 Jason Merrill <jason@redhat.com>
* hash-map.h, hash-table.h: Make copy constructors explicit.
2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
* cgraphunit.c (output_in_order): Do not assemble "omp declare target
......@@ -111,8 +111,9 @@ public:
CXX_MEM_STAT_INFO)
: m_table (n, ggc, gather_mem_stats, HASH_MAP_ORIGIN PASS_MEM_STAT) {}
hash_map (const hash_map &h, bool ggc = false,
bool gather_mem_stats = GATHER_STATISTICS CXX_MEM_STAT_INFO)
explicit hash_map (const hash_map &h, bool ggc = false,
bool gather_mem_stats = GATHER_STATISTICS
CXX_MEM_STAT_INFO)
: m_table (h.m_table, ggc, gather_mem_stats,
HASH_MAP_ORIGIN PASS_MEM_STAT) {}
......
......@@ -365,7 +365,7 @@ public:
bool gather_mem_stats = GATHER_STATISTICS,
mem_alloc_origin origin = HASH_TABLE_ORIGIN
CXX_MEM_STAT_INFO);
hash_table (const hash_table &, bool ggc = false,
explicit hash_table (const hash_table &, bool ggc = false,
bool gather_mem_stats = GATHER_STATISTICS,
mem_alloc_origin origin = HASH_TABLE_ORIGIN
CXX_MEM_STAT_INFO);
......
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