summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2010-03-12 22:22:36 +0000
committerTed Kremenek <kremenek@apple.com>2010-03-12 22:22:36 +0000
commitf59409623e3a12b7e1ed745e8fe9ad57e5f150e4 (patch)
treef33f8f345f9e4567b851f7356a4822d41fbc2e4f /clang/lib/Sema/SemaDecl.cpp
parent12f1e32d595776b48c7de7f96391486c5d2f6253 (diff)
downloadbcm5719-llvm-f59409623e3a12b7e1ed745e8fe9ad57e5f150e4.tar.gz
bcm5719-llvm-f59409623e3a12b7e1ed745e8fe9ad57e5f150e4.zip
Use llvm::SmallVector instead of std::vector.
llvm-svn: 98397
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 76081992027..7179f4bc6bb 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<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) {
OpenPOWER on IntegriCloud