From 0b6742aeb51340f07e8d58efaa9840cd00a229d1 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. llvm-svn: 230973 --- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 00dc717e1e47..232c592af24a 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/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.