summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ExprClassification.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2011-06-21 18:20:46 +0000
committerDouglas Gregor <dgregor@apple.com>2011-06-21 18:20:46 +0000
commitd410c08ebe2ce441d03f072058cc6e88868fb82c (patch)
tree8885d293f2735ae784992ab0c91cce889f7409e9 /clang/lib/AST/ExprClassification.cpp
parent40502b122921b3d24aef45430e90c2e0c2ebd2c9 (diff)
downloadbcm5719-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.cpp2
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;
}
OpenPOWER on IntegriCloud