[cfe-commits] r98397 - /cfe/trunk/lib/Sema/SemaDecl.cpp
Ted Kremenek
kremenek at apple.com
Fri Mar 12 14:22:36 PST 2010
Author: kremenek
Date: Fri Mar 12 16:22:36 2010
New Revision: 98397
URL: http://llvm.org/viewvc/llvm-project?rev=98397&view=rev
Log:
Use llvm::SmallVector instead of std::vector.
Modified:
cfe/trunk/lib/Sema/SemaDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=98397&r1=98396&r2=98397&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Fri Mar 12 16:22:36 2010
@@ -4249,9 +4249,10 @@
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) {
More information about the cfe-commits
mailing list