Commit bd355eb1 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

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

parent b437b4be
......@@ -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);
Supports Markdown
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