[llvm-commits] [llvm] r50561 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Dan Gohman
gohman at apple.com
Thu May 1 17:03:54 PDT 2008
Author: djg
Date: Thu May 1 19:03:54 2008
New Revision: 50561
URL: http://llvm.org/viewvc/llvm-project?rev=50561&view=rev
Log:
Use push_back(...) instead of resize(1, ...), per review feedback.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp?rev=50561&r1=50560&r2=50561&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Thu May 1 19:03:54 2008
@@ -4023,8 +4023,8 @@
// 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();
More information about the llvm-commits
mailing list