Use push_back(...) instead of resize(1, ...), per review feedback.
authorDan Gohman <gohman@apple.com>
Fri, 2 May 2008 00:03:54 +0000 (00:03 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 2 May 2008 00:03:54 +0000 (00:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50561 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index 78eb5d5157980412374e62f84bf3796ee5d42fb9..7fc5d617059a88cf465737350370bd6cf200e5aa 100644 (file)
@@ -4023,8 +4023,8 @@ void SelectionDAGLowering::visitInlineAsm(CallSite CS) {
           // Add NumOps>>3 registers to MatchedRegs.
           RegsForValue MatchedRegs;
           MatchedRegs.TLI = &TLI;
           // Add NumOps>>3 registers to MatchedRegs.
           RegsForValue MatchedRegs;
           MatchedRegs.TLI = &TLI;
-          MatchedRegs.ValueVTs.resize(1, InOperandVal.getValueType());
-          MatchedRegs.RegVTs.resize(1, AsmNodeOperands[CurOp+1].getValueType());
+          MatchedRegs.ValueVTs.push_back(InOperandVal.getValueType());
+          MatchedRegs.RegVTs.push_back(AsmNodeOperands[CurOp+1].getValueType());
           for (unsigned i = 0, e = NumOps>>3; i != e; ++i) {
             unsigned Reg =
               cast<RegisterSDNode>(AsmNodeOperands[++CurOp])->getReg();
           for (unsigned i = 0, e = NumOps>>3; i != e; ++i) {
             unsigned Reg =
               cast<RegisterSDNode>(AsmNodeOperands[++CurOp])->getReg();