Harden against potential empty nodes in the map

llvm-svn: 181045
This commit is contained in:
Enrico Granata 2013-05-03 19:07:20 +00:00
parent d03a273b96
commit 4ffff2791f
1 changed files with 2 additions and 0 deletions

View File

@ -66,6 +66,8 @@ public:
bool
error ()
{
if (!m_entry_sp)
return true;
return m_entry_sp->GetError().Fail();
}