summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ExprClassification.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-08-25 10:28:54 +0000
committerJohn McCall <rjmccall@apple.com>2010-08-25 10:28:54 +0000
commit2536c6da0ec4db6506f93f5f7d65ac1c17348c77 (patch)
tree29819bf87dc6ae5874e44ce9962f04c94bc6f220 /clang/lib/AST/ExprClassification.cpp
parentb50a088122875184c3dfc96337e631e2e854d2f7 (diff)
downloadbcm5719-llvm-2536c6da0ec4db6506f93f5f7d65ac1c17348c77.tar.gz
bcm5719-llvm-2536c6da0ec4db6506f93f5f7d65ac1c17348c77.zip
More incremental progress towards not including Expr.h in Sema.h.
llvm-svn: 112044
Diffstat (limited to 'clang/lib/AST/ExprClassification.cpp')
-rw-r--r--clang/lib/AST/ExprClassification.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/AST/ExprClassification.cpp b/clang/lib/AST/ExprClassification.cpp
index 429366ee890..80e07c5f084 100644
--- a/clang/lib/AST/ExprClassification.cpp
+++ b/clang/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.");
OpenPOWER on IntegriCloud