summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaExpr.cpp
diff options
context:
space:
mode:
authorFaisal Vali <faisalv@yahoo.com>2016-03-23 17:39:51 +0000
committerFaisal Vali <faisalv@yahoo.com>2016-03-23 17:39:51 +0000
commit084c912499e1b4e14f2d3f0fda2a4cdffd5c7d32 (patch)
treef7e930d0fafdcf6105270d4fd45fc9f788ddc7c1 /clang/lib/Sema/SemaExpr.cpp
parent85a8abee8b9c1d611656249016cbed19a227367f (diff)
downloadbcm5719-llvm-084c912499e1b4e14f2d3f0fda2a4cdffd5c7d32.tar.gz
bcm5719-llvm-084c912499e1b4e14f2d3f0fda2a4cdffd5c7d32.zip
[NFC] Delete an unused function parameter from a static function
llvm-svn: 264170
Diffstat (limited to 'clang/lib/Sema/SemaExpr.cpp')
-rw-r--r--clang/lib/Sema/SemaExpr.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 4e79b9e93ed..8b2ff757914 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -13249,8 +13249,7 @@ static bool captureInCapturedRegion(CapturedRegionScopeInfo *RSI,
/// \brief Create a field within the lambda class for the variable
/// being captured.
-// FIXME: Delete VarDecl *Var below, it is not used in the function.
-static void addAsFieldToClosureType(Sema &S, LambdaScopeInfo *LSI, VarDecl *Var,
+static void addAsFieldToClosureType(Sema &S, LambdaScopeInfo *LSI,
QualType FieldType, QualType DeclRefType,
SourceLocation Loc,
bool RefersToCapturedVariable) {
@@ -13344,7 +13343,7 @@ static bool captureInLambda(LambdaScopeInfo *LSI,
// Capture this variable in the lambda.
if (BuildAndDiagnose)
- addAsFieldToClosureType(S, LSI, Var, CaptureType, DeclRefType, Loc,
+ addAsFieldToClosureType(S, LSI, CaptureType, DeclRefType, Loc,
RefersToCapturedVariable);
// Compute the type of a reference to this captured variable.
OpenPOWER on IntegriCloud