1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Switch to SmallVector.

llvm-svn: 80007
This commit is contained in:
Owen Anderson 2009-08-25 17:35:37 +00:00
parent 66ea4dea86
commit fe7348b43e

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);
}