forked from OSchip/llvm-project
Fix weird typo which leads to unallocated memory access for nodes with 4 results.
llvm-svn: 91233
This commit is contained in:
parent
45800ce646
commit
94b6310136
|
@ -110,8 +110,7 @@ void SelectRoot(SelectionDAG &DAG) {
|
||||||
DAG.setSubgraphColor(Node, "red");
|
DAG.setSubgraphColor(Node, "red");
|
||||||
#endif
|
#endif
|
||||||
SDNode *ResNode = Select(SDValue(Node, 0));
|
SDNode *ResNode = Select(SDValue(Node, 0));
|
||||||
// If node should not be replaced,
|
// If node should not be replaced, continue with the next one.
|
||||||
// continue with the next one.
|
|
||||||
if (ResNode == Node)
|
if (ResNode == Node)
|
||||||
continue;
|
continue;
|
||||||
// Replace node.
|
// Replace node.
|
||||||
|
|
|
@ -4177,7 +4177,7 @@ SDVTList SelectionDAG::getVTList(EVT VT1, EVT VT2, EVT VT3, EVT VT4) {
|
||||||
I->VTs[2] == VT3 && I->VTs[3] == VT4)
|
I->VTs[2] == VT3 && I->VTs[3] == VT4)
|
||||||
return *I;
|
return *I;
|
||||||
|
|
||||||
EVT *Array = Allocator.Allocate<EVT>(3);
|
EVT *Array = Allocator.Allocate<EVT>(4);
|
||||||
Array[0] = VT1;
|
Array[0] = VT1;
|
||||||
Array[1] = VT2;
|
Array[1] = VT2;
|
||||||
Array[2] = VT3;
|
Array[2] = VT3;
|
||||||
|
|
Loading…
Reference in New Issue