forked from OSchip/llvm-project
Avoid assertion in MSVC 2013 debug builds.
llvm-svn: 230972
This commit is contained in:
parent
83b1bf3a27
commit
f43de1879a
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue