diff options
author | Dan Gohman <gohman@apple.com> | 2010-06-21 19:47:52 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-06-21 19:47:52 +0000 |
commit | 403a8cdda5e76ea689693de16474650b4b0df818 (patch) | |
tree | 33757aedb748b2532ddb9ce0437c137741f58b76 /lib/CodeGen/SelectionDAG/LegalizeTypes.cpp | |
parent | 658ebcc7ec08154e481b4f41fd904681225fbb29 (diff) |
Use A.append(...) instead of A.insert(A.end(), ...) when A is a
SmallVector, and other SmallVector simplifications.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106452 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeTypes.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeTypes.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp index 9299701f5b..6e56c98e9b 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp @@ -485,7 +485,7 @@ SDNode *DAGTypeLegalizer::AnalyzeNewNode(SDNode *N) { NewOps.push_back(Op); } else if (Op != OrigOp) { // This is the first operand to change - add all operands so far. - NewOps.insert(NewOps.end(), N->op_begin(), N->op_begin() + i); + NewOps.append(N->op_begin(), N->op_begin() + i); NewOps.push_back(Op); } } |