Use llvm::SmallVector instead of std::vector.

llvm-svn: 98397
This commit is contained in:
Ted Kremenek 2010-03-12 22:22:36 +00:00
parent 12f1e32d59
commit f59409623e
1 changed files with 3 additions and 2 deletions

View File

@ -4249,9 +4249,10 @@ Sema::DeclPtrTy Sema::ActOnFinishFunctionBody(DeclPtrTy D, StmtArg BodyArg,
CompoundStmt *Compound = isa<CXXTryStmt>(Body) ?
cast<CXXTryStmt>(Body)->getTryBlock() :
cast<CompoundStmt>(Body);
std::vector<Stmt*> Elements(Compound->body_begin(), Compound->body_end());
llvm::SmallVector<Stmt*, 64> Elements(Compound->body_begin(),
Compound->body_end());
Elements.push_back(L);
Compound->setStmts(Context, &Elements[0], Elements.size());
Compound->setStmts(Context, Elements.data(), Elements.size());
}
if (Body) {