Adjust the sizes for a few SmallVectors to reflect their usage.
[oota-llvm.git] / lib / CodeGen / RegAllocBigBlock.cpp
index 584aa7c7c0efa95d8bb5462d4bd54d672fcf1ca9..91e4099d0c45761fea7ca9849b6d062d2984104b 100644 (file)
@@ -518,7 +518,7 @@ MachineInstr *RABigBlock::reloadVirtReg(MachineBasicBlock &MBB, MachineInstr *MI
     assignVirtToPhysReg(VirtReg, PhysReg);
   } else {  // no free registers available.
     // try to fold the spill into the instruction
-    SmallVector<unsigned, 2> Ops;
+    SmallVector<unsigned, 1> Ops;
     Ops.push_back(OpNum);
     if(MachineInstr* FMI = TII->foldMemoryOperand(*MF, MI, Ops, FrameIndex)) {
       ++NumFolded;