[llvm] r230973 - Accidentaly inverted the condition again. Sorry.

Benjamin Kramer benny.kra at googlemail.com
Mon Mar 2 08:45:08 PST 2015


Author: d0k
Date: Mon Mar  2 10:45:08 2015
New Revision: 230973

URL: http://llvm.org/viewvc/llvm-project?rev=230973&view=rev
Log:
Accidentaly inverted the condition again. Sorry.

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

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp?rev=230973&r1=230972&r2=230973&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Mon Mar  2 10:45:08 2015
@@ -5419,7 +5419,7 @@ UpdateNodeOperands(SDNode *N, ArrayRef<S
          "Update with wrong number of operands");
 
   // If no operands changed just return the input node.
-  if (!Ops.empty() && std::equal(Ops.begin(), Ops.end(), N->op_begin()))
+  if (Ops.empty() || std::equal(Ops.begin(), Ops.end(), N->op_begin()))
     return N;
 
   // See if the modified node already exists.





More information about the llvm-commits mailing list