summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Expr.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-09-15 20:59:13 +0000
committerJohn McCall <rjmccall@apple.com>2010-09-15 20:59:13 +0000
commit02dc8c73e19231d729cf6f3366152bc72e60c902 (patch)
treec17f8d9e6806172c16b70038f7b9317cc092b027 /clang/lib/AST/Expr.cpp
parent28b5286bda20f9ec2fc5d818a4444fb06194f5f6 (diff)
downloadbcm5719-llvm-02dc8c73e19231d729cf6f3366152bc72e60c902.tar.gz
bcm5719-llvm-02dc8c73e19231d729cf6f3366152bc72e60c902.zip
Tweak comment as suggested by Sebastian.
llvm-svn: 114019
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
-rw-r--r--clang/lib/AST/Expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index 4e65b9c3397..f3285ec390b 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/lib/AST/Expr.cpp
@@ -1656,7 +1656,7 @@ bool Expr::isTemporaryObject(ASTContext &C, const CXXRecordDecl *TempTy) const {
const Expr *E = skipTemporaryBindingsAndNoOpCasts(this);
- // pr-values of class type are always temporaries.
+ // Temporaries are by definition pr-values of class type.
if (!E->Classify(C).isPRValue()) return false;
// Black-list implicit derived-to-base conversions, which are the
OpenPOWER on IntegriCloud