mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-26 14:15:53 +00:00
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:
parent
60fd8be183
commit
55a0f1e41f
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user