summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ODRHash.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2017-07-15 02:55:13 +0000
committerRichard Trieu <rtrieu@google.com>2017-07-15 02:55:13 +0000
commit1c71d5143a267850c71aa89c7448d400d7c07c21 (patch)
tree462f6e8fd2a47c69fe86fa546e99c4adbe5cad62 /clang/lib/AST/ODRHash.cpp
parentabdef9ee7ee5393fe347e594cf1a053fbefc9312 (diff)
downloadbcm5719-llvm-1c71d5143a267850c71aa89c7448d400d7c07c21.tar.gz
bcm5719-llvm-1c71d5143a267850c71aa89c7448d400d7c07c21.zip
[ODRHash] Revert r307743 which reverted r307720
Reapply r307720 to allow processing of constructors and destructors. Reuse the diagnostics for CXXMethodDecl for them. llvm-svn: 308077
Diffstat (limited to 'clang/lib/AST/ODRHash.cpp')
-rw-r--r--clang/lib/AST/ODRHash.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/AST/ODRHash.cpp b/clang/lib/AST/ODRHash.cpp
index c16f4f336af..b19135384cf 100644
--- a/clang/lib/AST/ODRHash.cpp
+++ b/clang/lib/AST/ODRHash.cpp
@@ -354,6 +354,8 @@ bool ODRHash::isWhitelistedDecl(const Decl *D, const CXXRecordDecl *Parent) {
default:
return false;
case Decl::AccessSpec:
+ case Decl::CXXConstructor:
+ case Decl::CXXDestructor:
case Decl::CXXMethod:
case Decl::Field:
case Decl::Friend:
OpenPOWER on IntegriCloud