r296221 - [ODRHash] Move inherited visitor call to end of function.

Richard Trieu via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 24 17:29:34 PST 2017


Author: rtrieu
Date: Fri Feb 24 19:29:34 2017
New Revision: 296221

URL: http://llvm.org/viewvc/llvm-project?rev=296221&view=rev
Log:
[ODRHash] Move inherited visitor call to end of function.

Modified:
    cfe/trunk/lib/AST/ODRHash.cpp

Modified: cfe/trunk/lib/AST/ODRHash.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ODRHash.cpp?rev=296221&r1=296220&r2=296221&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ODRHash.cpp (original)
+++ cfe/trunk/lib/AST/ODRHash.cpp Fri Feb 24 19:29:34 2017
@@ -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);
   }
 };
 




More information about the cfe-commits mailing list