[llvm] r347186 - Fix disturbing warning - NFCI

Serge Guelton via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 19 02:05:28 PST 2018


Author: serge_sans_paille
Date: Mon Nov 19 02:05:28 2018
New Revision: 347186

URL: http://llvm.org/viewvc/llvm-project?rev=347186&view=rev
Log:
Fix disturbing warning - NFCI

Modified:
    llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp

Modified: llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp?rev=347186&r1=347185&r2=347186&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp (original)
+++ llvm/trunk/lib/CodeGen/CodeGenPrepare.cpp Mon Nov 19 02:05:28 2018
@@ -2798,7 +2798,7 @@ bool PhiNodeSetIterator::operator==(cons
 }
 
 bool PhiNodeSetIterator::operator!=(const PhiNodeSetIterator &RHS) const {
-  return CurrentIndex != RHS.CurrentIndex;
+  return !((*this) == RHS);
 }
 
 /// Keep track of simplification of Phi nodes.




More information about the llvm-commits mailing list