Accidentaly inverted the condition again. Sorry.
authorBenjamin Kramer <benny.kra@googlemail.com>
Mon, 2 Mar 2015 16:45:08 +0000 (16:45 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Mon, 2 Mar 2015 16:45:08 +0000 (16:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230973 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index 00dc717e1e472548be6d11945f1b5a59030df6d6..232c592af24a8c82e9b4b8d57edbb64b425ec691 100644 (file)
@@ -5419,7 +5419,7 @@ UpdateNodeOperands(SDNode *N, ArrayRef<SDValue> Ops) {
          "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.