diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2014-12-16 08:01:48 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2014-12-16 08:01:48 +0000 |
commit | 07649fb7c5d7dec2e35b5c1c1c7907bafabb6a90 (patch) | |
tree | a8c4bef117584a8f09f1a47af931e335f584a6a0 /clang/lib/Sema/SemaStmt.cpp | |
parent | 8c66273d0c35bf4f7b99b52427af4ec2fcac21cb (diff) | |
download | bcm5719-llvm-07649fb7c5d7dec2e35b5c1c1c7907bafabb6a90.tar.gz bcm5719-llvm-07649fb7c5d7dec2e35b5c1c1c7907bafabb6a90.zip |
Renamed RefersToEnclosingLocal bitfield to RefersToCapturedVariable.
Bitfield RefersToEnclosingLocal of Stmt::DeclRefExprBitfields renamed to RefersToCapturedVariable to reflect latest changes introduced in commit 224323. Also renamed method Expr::refersToEnclosingLocal() to Expr::refersToCapturedVariable() and comments for constant arguments.
No functional changes.
llvm-svn: 224329
Diffstat (limited to 'clang/lib/Sema/SemaStmt.cpp')
-rw-r--r-- | clang/lib/Sema/SemaStmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp index 0c3bfd50acf..a3fd6fa9a17 100644 --- a/clang/lib/Sema/SemaStmt.cpp +++ b/clang/lib/Sema/SemaStmt.cpp @@ -2484,7 +2484,7 @@ VarDecl *Sema::getCopyElisionCandidate(QualType ReturnType, // - in a return statement in a function [where] ... // ... the expression is the name of a non-volatile automatic object ... DeclRefExpr *DR = dyn_cast<DeclRefExpr>(E->IgnoreParens()); - if (!DR || DR->refersToEnclosingLocal()) + if (!DR || DR->refersToCapturedVariable()) return nullptr; VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl()); if (!VD) |