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/CodeGen/CGExpr.cpp | |
| parent | cd940a1e13e588a43973cd7ae33b5c33a3062739 (diff) | |
| download | clang-4765fa05b5652fcc4356371c2f481d0ea9a1b007.tar.gz clang-4765fa05b5652fcc4356371c2f481d0ea9a1b007.tar.bz2 clang-4765fa05b5652fcc4356371c2f481d0ea9a1b007.tar.xz | |
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/CodeGen/CGExpr.cpp')
| -rw-r--r-- | lib/CodeGen/CGExpr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index 6cc573c0cf..4c6d841962 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -192,7 +192,7 @@ EmitExprForReferenceBinding(CodeGenFunction &CGF, const Expr *E, if (const CXXDefaultArgExpr *DAE = dyn_cast<CXXDefaultArgExpr>(E)) E = DAE->getExpr(); - if (const CXXExprWithTemporaries *TE = dyn_cast<CXXExprWithTemporaries>(E)) { + if (const ExprWithCleanups *TE = dyn_cast<ExprWithCleanups>(E)) { CodeGenFunction::RunCleanupsScope Scope(CGF); return EmitExprForReferenceBinding(CGF, TE->getSubExpr(), @@ -537,8 +537,8 @@ LValue CodeGenFunction::EmitLValue(const Expr *E) { return EmitCXXConstructLValue(cast<CXXConstructExpr>(E)); case Expr::CXXBindTemporaryExprClass: return EmitCXXBindTemporaryLValue(cast<CXXBindTemporaryExpr>(E)); - case Expr::CXXExprWithTemporariesClass: - return EmitCXXExprWithTemporariesLValue(cast<CXXExprWithTemporaries>(E)); + case Expr::ExprWithCleanupsClass: + return EmitExprWithCleanupsLValue(cast<ExprWithCleanups>(E)); case Expr::CXXScalarValueInitExprClass: return EmitNullInitializationLValue(cast<CXXScalarValueInitExpr>(E)); case Expr::CXXDefaultArgExprClass: |
