]> granicus.if.org Git - clang/commitdiff
Tweak comment as suggested by Sebastian.
authorJohn McCall <rjmccall@apple.com>
Wed, 15 Sep 2010 20:59:13 +0000 (20:59 +0000)
committerJohn McCall <rjmccall@apple.com>
Wed, 15 Sep 2010 20:59:13 +0000 (20:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114019 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/Expr.cpp

index 4e65b9c3397e2ea4beeefdbe68142415ed980844..f3285ec390b85e0530166602696c806f755e78c7 100644 (file)
@@ -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