summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-11-24 05:12:34 +0000
committerJohn McCall <rjmccall@apple.com>2010-11-24 05:12:34 +0000
commit086a464e24de0d01fc9fa51cff73f3bbc4ac0ba3 (patch)
tree7c3525b9486d35300037036b925cb2276b2c5848 /clang/lib/AST/ASTContext.cpp
parente2ea8bf9454d5a2d4d0b8bcdd06662519ec7d5a0 (diff)
downloadbcm5719-llvm-086a464e24de0d01fc9fa51cff73f3bbc4ac0ba3.tar.gz
bcm5719-llvm-086a464e24de0d01fc9fa51cff73f3bbc4ac0ba3.zip
Switch a lot of call-sites over to using the new value-kind calculations.
llvm-svn: 120084
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 12a92f8ac6f..7b247701021 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -2378,7 +2378,7 @@ static QualType getDecltypeForExpr(const Expr *e, ASTContext &Context) {
// Otherwise, where T is the type of e, if e is an lvalue, decltype(e) is
// defined as T&, otherwise decltype(e) is defined as T.
- if (e->isLvalue(Context) == Expr::LV_Valid)
+ if (e->isLValue())
T = Context.getLValueReferenceType(T);
return T;
OpenPOWER on IntegriCloud