diff options
author | John McCall <rjmccall@apple.com> | 2010-12-06 08:20:24 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-12-06 08:20:24 +0000 |
commit | 4765fa05b5652fcc4356371c2f481d0ea9a1b007 (patch) | |
tree | 82e9de9098859a89427f187c0a7eaae82ab788e2 /lib/Sema/SemaDecl.cpp | |
parent | cd940a1e13e588a43973cd7ae33b5c33a3062739 (diff) |
Rename CXXExprWithTemporaries -> ExprWithCleanups; there's no theoretical
reason this is limited to C++, and it's certainly not limited to temporaries.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120996 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index ff90670b7c..aa2e2a53d6 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -3037,7 +3037,7 @@ Sema::ActOnVariableDeclarator(Scope *S, Declarator &D, DeclContext *DC, SourceLocation(), Owned(E)); if (!Res.isInvalid()) { - Res = MaybeCreateCXXExprWithTemporaries(Res.get()); + Res = MaybeCreateExprWithCleanups(Res.get()); Expr *Init = Res.takeAs<Expr>(); Context.setBlockVarCopyInits(NewVD, Init); } @@ -4589,7 +4589,7 @@ void Sema::AddInitializerToDecl(Decl *RealDecl, Expr *Init, bool DirectInit) { // Check any implicit conversions within the expression. CheckImplicitConversions(Init, VDecl->getLocation()); - Init = MaybeCreateCXXExprWithTemporaries(Init); + Init = MaybeCreateExprWithCleanups(Init); // Attach the initializer to the decl. VDecl->setInit(Init); @@ -4805,7 +4805,7 @@ void Sema::ActOnUninitializedDecl(Decl *RealDecl, if (Init.isInvalid()) Var->setInvalidDecl(); else if (Init.get()) { - Var->setInit(MaybeCreateCXXExprWithTemporaries(Init.takeAs<Expr>())); + Var->setInit(MaybeCreateExprWithCleanups(Init.takeAs<Expr>())); if (getLangOptions().CPlusPlus && !Var->isInvalidDecl() && Var->hasGlobalStorage() && !Var->isStaticLocal() && |