Add OldMD to the list of methods NewMD overrides

llvm-svn: 71969
This commit is contained in:
Anders Carlsson 2009-05-16 23:59:08 +00:00
parent 36d87e179a
commit 776a1403ed
1 changed files with 2 additions and 6 deletions

View File

@ -2161,15 +2161,11 @@ Sema::ActOnFunctionDeclarator(Scope* S, Declarator& D, DeclContext* DC,
if (!OldMD->isVirtual())
continue;
if (!CheckOverridingFunctionReturnType(NewMD, OldMD)) {
// FIXME: Add OldMD to the list of methods NewMD overrides.
}
if (!CheckOverridingFunctionReturnType(NewMD, OldMD))
NewMD->addOverriddenMethod(OldMD);
}
}
}
}
if (SC == FunctionDecl::Static && isa<CXXMethodDecl>(NewFD) &&