Got the same pointer. There is no reason to check for structural equivalence.

This commit is contained in:
Roberto Raggi
2009-11-23 13:47:24 +01:00
parent b437b4be0f
commit bd355eb16f

View File

@@ -45,8 +45,11 @@ TypeMatcher::~TypeMatcher()
bool TypeMatcher::isEqualTo(const Name *name, const Name *otherName) const
{
if (! name || ! otherName)
return name == otherName;
if (name == otherName)
return true;
else if (! name || ! otherName)
return false;
return name->isEqualTo(otherName);
}