From: Richard Trieu Date: Sat, 25 Feb 2017 01:29:34 +0000 (+0000) Subject: [ODRHash] Move inherited visitor call to end of function. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8989fd32d7473f2f82da784f9f1d50530fe2218b;p=clang [ODRHash] Move inherited visitor call to end of function. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@296221 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ODRHash.cpp b/lib/AST/ODRHash.cpp index 28b2eff633..d8c2e20ede 100644 --- a/lib/AST/ODRHash.cpp +++ b/lib/AST/ODRHash.cpp @@ -182,8 +182,6 @@ public: } void VisitFieldDecl(const FieldDecl *D) { - Inherited::VisitFieldDecl(D); - const bool IsBitfield = D->isBitField(); Hash.AddBoolean(IsBitfield); @@ -193,6 +191,8 @@ public: Hash.AddBoolean(D->isMutable()); AddStmt(D->getInClassInitializer()); + + Inherited::VisitFieldDecl(D); } };