diff options
| -rw-r--r-- | gdb/symtab.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 13cd331..4e96503 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -428,8 +428,9 @@ void compunit_symtab::set_call_site_htab (call_site_htab_t &&call_site_htab) { gdb_assert (m_call_site_htab == nullptr); - m_call_site_htab - = std::make_unique<call_site_htab_t> (std::move (call_site_htab)); + if (!call_site_htab.empty ()) + m_call_site_htab + = std::make_unique<call_site_htab_t> (std::move (call_site_htab)); } /* See symtab.h. */ |
