Turn off hashing for class methods, but leave it on for other functions. This
should get the buildbot to green for the time being.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@321396
91177308-0d34-0410-b5e6-
96231b3b80d8
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) {