DebugInfo: Avoid redundantly adding child DIEs to parents.
[oota-llvm.git] / lib / CodeGen / TwoAddressInstructionPass.cpp
index 7ca2beef65155989c437e0336d5cafae807580ef..c52e6756c750adbe0b4d40fa2daedc17e6b32e2d 100644 (file)
@@ -1539,7 +1539,7 @@ bool TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &Func) {
       // transformations that may either eliminate the tied operands or
       // improve the opportunities for coalescing away the register copy.
       if (TiedOperands.size() == 1) {
-        SmallVector<std::pair<unsigned, unsigned>, 4> &TiedPairs
+        SmallVectorImpl<std::pair<unsigned, unsigned> > &TiedPairs
           = TiedOperands.begin()->second;
         if (TiedPairs.size() == 1) {
           unsigned SrcIdx = TiedPairs[0].first;