diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-02-17 21:55:18 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-02-17 21:55:18 +0000 |
commit | 57dddd4840bacb0c74be69c2fb34723d64af7c9a (patch) | |
tree | 934ef19bc660f735eff82ba6d4aa55ef3b4e3fca /clang/lib/Sema/SemaExpr.cpp | |
parent | d907016dd039d04ef26d12168b9a789a1e3fb591 (diff) | |
download | bcm5719-llvm-57dddd4840bacb0c74be69c2fb34723d64af7c9a.tar.gz bcm5719-llvm-57dddd4840bacb0c74be69c2fb34723d64af7c9a.zip |
Sema: Replace some push_backs of expensive to move objects with emplace_back.
NFC.
llvm-svn: 229557
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
-rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index a9ea72577ab..4b807c10581 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -11606,12 +11606,9 @@ void Sema::PushExpressionEvaluationContext(ExpressionEvaluationContext NewContext, Decl *LambdaContextDecl, bool IsDecltype) { - ExprEvalContexts.push_back( - ExpressionEvaluationContextRecord(NewContext, - ExprCleanupObjects.size(), - ExprNeedsCleanups, - LambdaContextDecl, - IsDecltype)); + ExprEvalContexts.emplace_back(NewContext, ExprCleanupObjects.size(), + ExprNeedsCleanups, LambdaContextDecl, + IsDecltype); ExprNeedsCleanups = false; if (!MaybeODRUseExprs.empty()) std::swap(MaybeODRUseExprs, ExprEvalContexts.back().SavedMaybeODRUseExprs); |