From f59409623e3a12b7e1ed745e8fe9ad57e5f150e4 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Fri, 12 Mar 2010 22:22:36 +0000 Subject: [PATCH] Use llvm::SmallVector instead of std::vector. llvm-svn: 98397 --- clang/lib/Sema/SemaDecl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 760819920277..7179f4bc6bb7 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -4249,9 +4249,10 @@ Sema::DeclPtrTy Sema::ActOnFinishFunctionBody(DeclPtrTy D, StmtArg BodyArg, CompoundStmt *Compound = isa(Body) ? cast(Body)->getTryBlock() : cast(Body); - std::vector Elements(Compound->body_begin(), Compound->body_end()); + llvm::SmallVector 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) {