diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-06-21 18:20:46 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-06-21 18:20:46 +0000 |
commit | d410c08ebe2ce441d03f072058cc6e88868fb82c (patch) | |
tree | 8885d293f2735ae784992ab0c91cce889f7409e9 /clang/lib/AST/ExprClassification.cpp | |
parent | 40502b122921b3d24aef45430e90c2e0c2ebd2c9 (diff) | |
download | bcm5719-llvm-d410c08ebe2ce441d03f072058cc6e88868fb82c.tar.gz bcm5719-llvm-d410c08ebe2ce441d03f072058cc6e88868fb82c.zip |
A few tweaks to MaterializeTemporaryExpr suggested by John.
llvm-svn: 133528
Diffstat (limited to 'clang/lib/AST/ExprClassification.cpp')
-rw-r--r-- | clang/lib/AST/ExprClassification.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ExprClassification.cpp b/clang/lib/AST/ExprClassification.cpp index 2d824ce8fd7..2a05c1fccff 100644 --- a/clang/lib/AST/ExprClassification.cpp +++ b/clang/lib/AST/ExprClassification.cpp @@ -343,7 +343,7 @@ static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E) { return ClassifyInternal(Ctx, cast<PackExpansionExpr>(E)->getPattern()); case Expr::MaterializeTemporaryExprClass: - return cast<MaterializeTemporaryExpr>(E)->BoundToLvalueReference() + return cast<MaterializeTemporaryExpr>(E)->isBoundToLvalueReference() ? Cl::CL_LValue : Cl::CL_XValue; } |