llvm.org GIT mirror llvm / 55a0f1e
Switch to SmallVector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80007 91177308-0d34-0410-b5e6-96231b3b80d8 Owen Anderson 11 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
188188 // Old dominates New. New node domiantes all other nodes dominated
189189 //by Old.
190190 DomTreeNode *OldNode = DT->getNode(*I);
191 std::vector> Children;
191 SmallVector> Children;
192192 for (DomTreeNode::iterator DI = OldNode->begin(), DE = OldNode->end();
193193 DI != DE; ++DI)
194194 Children.push_back(*DI);
195195
196196 DomTreeNode *NewNode = DT->addNewBlock(New, *I);
197197
198 for (std::vector>::iterator I = Children.begin(),
198 for (SmallVector>::iterator I = Children.begin(),
199199 E = Children.end(); I != E; ++I)
200200 DT->changeImmediateDominator(*I, NewNode);
201201 }