From: Dan Gohman Date: Fri, 31 Jul 2009 23:36:06 +0000 (+0000) Subject: Use a range insert instead of an explicit loop. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dd3da92b4a7b5aefae57abca97718cfe585619a6;p=platform%2Fupstream%2Fllvm.git Use a range insert instead of an explicit loop. llvm-svn: 77752 --- diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp index c80b34d..82d98a7 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeTypes.cpp @@ -480,8 +480,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. - for (unsigned j = 0; j < i; ++j) - NewOps.push_back(N->getOperand(j)); + NewOps.insert(NewOps.end(), N->op_begin(), N->op_begin() + i); NewOps.push_back(Op); } }