[PATCH] D56738: [SelectionDAG] Update check in createOperands to reflect max() is a valid value.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 16 02:10:17 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL351318: [SelectionDAG] Update check in createOperands to reflect max() is a valid value. (authored by fhahn, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D56738?vs=181845&id=181999#toc
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D56738/new/
https://reviews.llvm.org/D56738
Files:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Index: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
===================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -9266,7 +9266,7 @@
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(
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56738.181999.patch
Type: text/x-patch
Size: 666 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190116/189ed593/attachment.bin>
More information about the llvm-commits
mailing list