summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaStmt.cpp
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2015-01-12 10:17:46 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2015-01-12 10:17:46 +0000
commit19acc3d351628017c4fcfb00112302d55115a11e (patch)
treedf7b634bf41eb0085da1f2582e02ea9637268350 /clang/lib/Sema/SemaStmt.cpp
parent2337f28063b0adf2309ebc07d3f72c5d459cf9bf (diff)
downloadbcm5719-llvm-19acc3d351628017c4fcfb00112302d55115a11e.tar.gz
bcm5719-llvm-19acc3d351628017c4fcfb00112302d55115a11e.zip
Rename RefersToCapturedVariable to RefersToEnclosingVariableOrCapture, NFC
llvm-svn: 225624
Diffstat (limited to 'clang/lib/Sema/SemaStmt.cpp')
-rw-r--r--clang/lib/Sema/SemaStmt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaStmt.cpp b/clang/lib/Sema/SemaStmt.cpp
index f4877520706..22ed9308206 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->refersToCapturedVariable())
+ if (!DR || DR->refersToEnclosingVariableOrCapture())
return nullptr;
VarDecl *VD = dyn_cast<VarDecl>(DR->getDecl());
if (!VD)
OpenPOWER on IntegriCloud