From: Richard Trieu Date: Sat, 23 Dec 2017 01:35:32 +0000 (+0000) Subject: [ODRHash] Disable hashing on methods. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d87ab960678a261b9088d983859665083ee0079f;p=clang [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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@321396 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ODRHash.cpp b/lib/AST/ODRHash.cpp index b6874e7ba4..088d8bedd4 100644 --- a/lib/AST/ODRHash.cpp +++ b/lib/AST/ODRHash.cpp @@ -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(Function)) return; + // Skip functions that are specializations or in specialization context. const DeclContext *DC = Function; while (DC) {