diff options
author | John McCall <rjmccall@apple.com> | 2010-08-25 10:28:54 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-08-25 10:28:54 +0000 |
commit | 5baba9d98364a3525d6afa15a04cdad82fd6dd30 (patch) | |
tree | fa5f362a24e847c0853cb792239948880e89f96c /lib/AST/ExprClassification.cpp | |
parent | f869d205c5985121b8134a9174ed8d3b136637b5 (diff) |
More incremental progress towards not including Expr.h in Sema.h.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112044 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ExprClassification.cpp')
-rw-r--r-- | lib/AST/ExprClassification.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/AST/ExprClassification.cpp b/lib/AST/ExprClassification.cpp index 429366ee89..80e07c5f08 100644 --- a/lib/AST/ExprClassification.cpp +++ b/lib/AST/ExprClassification.cpp @@ -134,13 +134,13 @@ static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E) { // Implicit casts are lvalues if they're lvalue casts. Other than that, we // only specifically record class temporaries. case Expr::ImplicitCastExprClass: - switch (cast<ImplicitCastExpr>(E)->getCategory()) { - case ImplicitCastExpr::RValue: + switch (cast<ImplicitCastExpr>(E)->getValueKind()) { + case VK_RValue: return Lang.CPlusPlus && E->getType()->isRecordType() ? Cl::CL_ClassTemporary : Cl::CL_PRValue; - case ImplicitCastExpr::LValue: + case VK_LValue: return Cl::CL_LValue; - case ImplicitCastExpr::XValue: + case VK_XValue: return Cl::CL_XValue; } llvm_unreachable("Invalid value category of implicit cast."); |