diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-03-02 16:42:56 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-03-02 16:42:56 +0000 |
commit | f43de1879a5cba695470de29af4202c71c962c6a (patch) | |
tree | 61788f4643b34571b9889744a6eb041e929516b6 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 83b1bf3a27e9a93038f4508492acf8497c6101e7 (diff) | |
download | bcm5719-llvm-f43de1879a5cba695470de29af4202c71c962c6a.tar.gz bcm5719-llvm-f43de1879a5cba695470de29af4202c71c962c6a.zip |
Avoid assertion in MSVC 2013 debug builds.
llvm-svn: 230972
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index dcb2ab0a333..00dc717e1e4 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -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 (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. |