From: Richard Trieu Date: Sat, 23 Dec 2017 01:35:32 +0000 (+0000) Subject: [ODRHash] Disable hashing on methods. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb59856a4e212c2fe9118138520692c21a1666fe;p=platform%2Fupstream%2Fllvm.git [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 --- diff --git a/clang/lib/AST/ODRHash.cpp b/clang/lib/AST/ODRHash.cpp index b6874e7..088d8be 100644 --- a/clang/lib/AST/ODRHash.cpp +++ b/clang/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) {