From: Benjamin Kramer Date: Mon, 2 Mar 2015 16:45:08 +0000 (+0000) Subject: Accidentaly inverted the condition again. Sorry. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2271bfcd9c5d535af8ba658afbeb3aabaf76aa8b;p=oota-llvm.git Accidentaly inverted the condition again. Sorry. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230973 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 00dc717e1e4..232c592af24 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -5419,7 +5419,7 @@ UpdateNodeOperands(SDNode *N, ArrayRef 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.