diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-03-12 22:22:36 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-03-12 22:22:36 +0000 |
commit | 4c9f709fc9ea7a7d8c8a85e29730c2365c2cad18 (patch) | |
tree | 2f395fff96b4e0cf143010a370d16fa129adaac6 | |
parent | 20e1c7ea56103b7de26e5ab4086739bdc3a3d850 (diff) |
Use llvm::SmallVector instead of std::vector.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98397 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 7608199202..7179f4bc6b 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -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) { |