summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ODRHash.cpp
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2017-02-24 23:35:37 +0000
committerRichard Trieu <rtrieu@google.com>2017-02-24 23:35:37 +0000
commit8d543e2741c1fac6b002fb87e47dfc0b8ee0c212 (patch)
treefe911b220a40d2544b52a157aac3884aad30bf0b /clang/lib/AST/ODRHash.cpp
parent0d67b10a3c95dc61cd4b56ba51e86ddc47d92cb2 (diff)
[ODRHash] Finish FieldDecl support by handling mutable and initializers.
https://reviews.llvm.org/rL296170 llvm-svn: 296198
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 208d5f3c49c5..28b2eff63397 100644
--- a/clang/lib/AST/ODRHash.cpp
+++ b/clang/lib/AST/ODRHash.cpp
@@ -190,6 +190,9 @@ public:
if (IsBitfield) {
AddStmt(D->getBitWidth());
}
+
+ Hash.AddBoolean(D->isMutable());
+ AddStmt(D->getInClassInitializer());
}
};