<div dir="ltr">Might be nice to have a test case for this as well?</div><br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 28, 2018 at 4:35 AM Haojian Wu via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-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: hokein<br>
Date: Wed Nov 28 04:32:53 2018<br>
New Revision: 347749<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=347749&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=347749&view=rev</a><br>
Log:<br>
Fix -Winfinite-recursion compile error.<br>
<br>
Modified:<br>
    llvm/trunk/utils/TableGen/CodeGenInstruction.h<br>
<br>
Modified: llvm/trunk/utils/TableGen/CodeGenInstruction.h<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenInstruction.h?rev=347749&r1=347748&r2=347749&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenInstruction.h?rev=347749&r1=347748&r2=347749&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/utils/TableGen/CodeGenInstruction.h (original)<br>
+++ llvm/trunk/utils/TableGen/CodeGenInstruction.h Wed Nov 28 04:32:53 2018<br>
@@ -65,7 +65,9 @@ template <typename T> class ArrayRef;<br>
           return false;<br>
         return true;<br>
       }<br>
-      bool operator!=(const ConstraintInfo &RHS) const { return *this != RHS; }<br>
+      bool operator!=(const ConstraintInfo &RHS) const {<br>
+        return !(*this == RHS);<br>
+      }<br>
     };<br>
<br>
     /// OperandInfo - The information we keep track of for each operand in the<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@lists.llvm.org" target="_blank">llvm-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
</blockquote></div>