summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ODRHash.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2017-12-23 01:35:32 +0000
committerRichard Trieu <rtrieu@google.com>2017-12-23 01:35:32 +0000
commitfb59856a4e212c2fe9118138520692c21a1666fe (patch)
tree8f13ee1f2fb53bc5b01b849dab7508a5bddce5be /clang/lib/AST/ODRHash.cpp
parente6caa26e5d1f277c620976923bf6fd58433b2c86 (diff)
downloadbcm5719-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.cpp3
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) {
OpenPOWER on IntegriCloud