]> granicus.if.org Git - clang/commitdiff
[ODRHash] Move inherited visitor call to end of function.
authorRichard Trieu <rtrieu@google.com>
Sat, 25 Feb 2017 01:29:34 +0000 (01:29 +0000)
committerRichard Trieu <rtrieu@google.com>
Sat, 25 Feb 2017 01:29:34 +0000 (01:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@296221 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/ODRHash.cpp

index 28b2eff633972de8823b5eb6c1789177f02eef39..d8c2e20ede671318f158c0adfb177d0a81b882ad 100644 (file)
@@ -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);
   }
 };