mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-09 13:33:17 +00:00
Avoid assertion in MSVC 2013 debug builds.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230972 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6cc6b419e4
commit
8bbe122af2
@ -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…
x
Reference in New Issue
Block a user