mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[SelectionDAG] Update check in createOperands to reflect max() is a valid value.
The value returned by max() is the last valid value, adjust the comparison accordingly. The code added in D55073 creates TokenFactors with max() operands. Reviewers: aemerson, efriedma, RKSimon, craig.topper Reviewed By: aemerson Differential Revision: https://reviews.llvm.org/D56738 llvm-svn: 351318
This commit is contained in:
parent
a203e4cb0a
commit
cd0bf74cf5
@ -9266,7 +9266,7 @@ SDNode *SelectionDAG::isConstantFPBuildVectorOrConstantFP(SDValue N) {
|
||||
|
||||
void SelectionDAG::createOperands(SDNode *Node, ArrayRef<SDValue> Vals) {
|
||||
assert(!Node->OperandList && "Node already has operands");
|
||||
assert(std::numeric_limits<decltype(SDNode::NumOperands)>::max() >
|
||||
assert(std::numeric_limits<decltype(SDNode::NumOperands)>::max() >=
|
||||
Vals.size() &&
|
||||
"too many operands to fit into SDNode");
|
||||
SDUse *Ops = OperandRecycler.allocate(
|
||||
|
Loading…
Reference in New Issue
Block a user