From 55a0f1e41f1b166eb924909eeec94a54417f95eb Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Tue, 25 Aug 2009 17:35:37 +0000 Subject: [PATCH] Switch to SmallVector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80007 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/CodeExtractor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Transforms/Utils/CodeExtractor.cpp b/lib/Transforms/Utils/CodeExtractor.cpp index a4f312a5ac0..db523daa4f5 100644 --- a/lib/Transforms/Utils/CodeExtractor.cpp +++ b/lib/Transforms/Utils/CodeExtractor.cpp @@ -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 Children; + SmallVector 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::iterator I = Children.begin(), + for (SmallVector::iterator I = Children.begin(), E = Children.end(); I != E; ++I) DT->changeImmediateDominator(*I, NewNode); }