Switch to SmallVector.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80007 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2009-08-25 17:35:37 +00:00
parent 60fd8be183
commit 55a0f1e41f

View File

@ -189,14 +189,14 @@ void CodeExtractor::splitReturnBlocks() {
// Old dominates New. New node domiantes all other nodes dominated
//by Old.
DomTreeNode *OldNode = DT->getNode(*I);
std::vector<DomTreeNode *> Children;
SmallVector<DomTreeNode*, 8> Children;
for (DomTreeNode::iterator DI = OldNode->begin(), DE = OldNode->end();
DI != DE; ++DI)
Children.push_back(*DI);
DomTreeNode *NewNode = DT->addNewBlock(New, *I);
for (std::vector<DomTreeNode *>::iterator I = Children.begin(),
for (SmallVector<DomTreeNode*, 8>::iterator I = Children.begin(),
E = Children.end(); I != E; ++I)
DT->changeImmediateDominator(*I, NewNode);
}