projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6caa26
)
[ODRHash] Disable hashing on methods.
author
Richard Trieu
<rtrieu@google.com>
Sat, 23 Dec 2017 01:35:32 +0000
(
01:35
+0000)
committer
Richard 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
patch
|
blob
|
history
diff --git
a/clang/lib/AST/ODRHash.cpp
b/clang/lib/AST/ODRHash.cpp
index
b6874e7
..
088d8be
100644
(file)
--- 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) {