<div dir="ltr">An explanation as to why the code was moved (& possibly test cases, or "NFC" in the description) would be handy here.</div><br><div class="gmail_quote"><div dir="ltr">On Fri, Feb 24, 2017 at 5:41 PM Richard Trieu via cfe-commits <<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: rtrieu<br class="gmail_msg">
Date: Fri Feb 24 19:29:34 2017<br class="gmail_msg">
New Revision: 296221<br class="gmail_msg">
<br class="gmail_msg">
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=296221&view=rev" rel="noreferrer" class="gmail_msg" target="_blank">http://llvm.org/viewvc/llvm-project?rev=296221&view=rev</a><br class="gmail_msg">
Log:<br class="gmail_msg">
[ODRHash] Move inherited visitor call to end of function.<br class="gmail_msg">
<br class="gmail_msg">
Modified:<br class="gmail_msg">
    cfe/trunk/lib/AST/ODRHash.cpp<br class="gmail_msg">
<br class="gmail_msg">
Modified: cfe/trunk/lib/AST/ODRHash.cpp<br class="gmail_msg">
URL: <a href="http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ODRHash.cpp?rev=296221&r1=296220&r2=296221&view=diff" rel="noreferrer" class="gmail_msg" target="_blank">http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ODRHash.cpp?rev=296221&r1=296220&r2=296221&view=diff</a><br class="gmail_msg">
==============================================================================<br class="gmail_msg">
--- cfe/trunk/lib/AST/ODRHash.cpp (original)<br class="gmail_msg">
+++ cfe/trunk/lib/AST/ODRHash.cpp Fri Feb 24 19:29:34 2017<br class="gmail_msg">
@@ -182,8 +182,6 @@ public:<br class="gmail_msg">
   }<br class="gmail_msg">
<br class="gmail_msg">
   void VisitFieldDecl(const FieldDecl *D) {<br class="gmail_msg">
-    Inherited::VisitFieldDecl(D);<br class="gmail_msg">
-<br class="gmail_msg">
     const bool IsBitfield = D->isBitField();<br class="gmail_msg">
     Hash.AddBoolean(IsBitfield);<br class="gmail_msg">
<br class="gmail_msg">
@@ -193,6 +191,8 @@ public:<br class="gmail_msg">
<br class="gmail_msg">
     Hash.AddBoolean(D->isMutable());<br class="gmail_msg">
     AddStmt(D->getInClassInitializer());<br class="gmail_msg">
+<br class="gmail_msg">
+    Inherited::VisitFieldDecl(D);<br class="gmail_msg">
   }<br class="gmail_msg">
 };<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
cfe-commits mailing list<br class="gmail_msg">
<a href="mailto:cfe-commits@lists.llvm.org" class="gmail_msg" target="_blank">cfe-commits@lists.llvm.org</a><br class="gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" class="gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br class="gmail_msg">
</blockquote></div>