[ODRHash] Disable hashing on methods.
authorRichard Trieu <rtrieu@google.com>
Sat, 23 Dec 2017 01:35:32 +0000 (01:35 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 23 Dec 2017 01:35:32 +0000 (01:35 +0000)
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

clang/lib/AST/ODRHash.cpp

index b6874e7..088d8be 100644 (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) {