Accidentaly inverted the condition again. Sorry.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230973 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2015-03-02 16:45:08 +00:00
parent 8bbe122af2
commit 2271bfcd9c

View 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.