[ODRHash] Disable hashing on methods.

Turn off hashing for class methods, but leave it on for other functions.  This
should get the buildbot to green for the time being.

llvm-svn: 321396
This commit is contained in:
Richard Trieu 2017-12-23 01:35:32 +00:00
parent e6caa26e5d
commit fb59856a4e
1 changed files with 3 additions and 0 deletions

View File

@ -476,6 +476,9 @@ void ODRHash::AddFunctionDecl(const FunctionDecl *Function) {
if (!Function->hasBody()) return;
if (!Function->getBody()) return;
// TODO: Fix hashing for class methods.
if (isa<CXXMethodDecl>(Function)) return;
// Skip functions that are specializations or in specialization context.
const DeclContext *DC = Function;
while (DC) {