Avoid assertion in MSVC 2013 debug builds.

llvm-svn: 230972
This commit is contained in:
Benjamin Kramer 2015-03-02 16:42:56 +00:00
parent 83b1bf3a27
commit f43de1879a
1 changed files with 1 additions and 1 deletions

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