diff options
author | Richard Trieu <rtrieu@google.com> | 2017-12-23 01:35:32 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2017-12-23 01:35:32 +0000 |
commit | fb59856a4e212c2fe9118138520692c21a1666fe (patch) | |
tree | 8f13ee1f2fb53bc5b01b849dab7508a5bddce5be /clang/lib/AST/ODRHash.cpp | |
parent | e6caa26e5d1f277c620976923bf6fd58433b2c86 (diff) | |
download | bcm5719-llvm-fb59856a4e212c2fe9118138520692c21a1666fe.tar.gz bcm5719-llvm-fb59856a4e212c2fe9118138520692c21a1666fe.zip |
[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
Diffstat (limited to 'clang/lib/AST/ODRHash.cpp')
-rw-r--r-- | clang/lib/AST/ODRHash.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/AST/ODRHash.cpp b/clang/lib/AST/ODRHash.cpp index b6874e7ba42..088d8bedd45 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<CXXMethodDecl>(Function)) return; + // Skip functions that are specializations or in specialization context. const DeclContext *DC = Function; while (DC) { |