Removed hidden function declarations from the overloaded function set.

This commit is contained in:
Roberto Raggi
2009-05-19 12:15:30 +02:00
parent 55c69ffea4
commit 339cb43454
2 changed files with 43 additions and 23 deletions

View File

@@ -187,6 +187,11 @@ bool Function::isEqualTo(const Type *other) const
const Function *o = other->asFunctionType();
if (! o)
return false;
else if (isConst() != o->isConst())
return false;
else if (isVolatile() != o->isVolatile())
return false;
Name *l = identity();
Name *r = o->identity();
if (l == r || (l && l->isEqualTo(r))) {