From 2271bfcd9c5d535af8ba658afbeb3aabaf76aa8b Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 2 Mar 2015 16:45:08 +0000 Subject: [PATCH] Accidentaly inverted the condition again. Sorry. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230973 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.11.0