Check for possible 0x0 accesses.

This commit is contained in:
Roberto Raggi
2010-05-28 11:15:08 +02:00
parent 75bcf2bc66
commit e343b33342
2 changed files with 3 additions and 1 deletions

View File

@@ -170,6 +170,8 @@ const FullySpecifiedType &TemplateNameId::templateArgumentAt(unsigned index) con
bool TemplateNameId::isEqualTo(const Name *other) const
{
if (! other)
return false;
const TemplateNameId *t = other->asTemplateNameId();
if (! t)
return false;