Increase the size of this SmallVector in CloneNodeWithValues.
authorHans Wennborg <hans@hanshq.net>
Mon, 11 Aug 2014 02:21:19 +0000 (02:21 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 11 Aug 2014 02:21:19 +0000 (02:21 +0000)
In a Clang bootstrap, the size of this vector was always 6.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215335 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp

index 83f8d308d71cbe89a3be2072af522928c5066cbd..62b3625055c846447d558d48a69bad07235eea55 100644 (file)
@@ -136,7 +136,7 @@ static void CheckForPhysRegDependency(SDNode *Def, SDNode *User, unsigned Op,
 static void CloneNodeWithValues(SDNode *N, SelectionDAG *DAG,
                                 SmallVectorImpl<EVT> &VTs,
                                 SDValue ExtraOper = SDValue()) {
-  SmallVector<SDValue, 4> Ops;
+  SmallVector<SDValue, 6> Ops;
   for (unsigned I = 0, E = N->getNumOperands(); I != E; ++I)
     Ops.push_back(N->getOperand(I));