r264170 - [NFC] Delete an unused function parameter from a static function

Faisal Vali via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 23 10:39:51 PDT 2016

Author: faisalv
Date: Wed Mar 23 12:39:51 2016
New Revision: 264170

URL: http://llvm.org/viewvc/llvm-project?rev=264170&view=rev
[NFC] Delete an unused function parameter from a static function 


Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=264170&r1=264169&r2=264170&view=diff
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Wed Mar 23 12:39:51 2016
@@ -13249,8 +13249,7 @@ static bool captureInCapturedRegion(Capt
 /// \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(LambdaScopeI
   // Capture this variable in the lambda.
   if (BuildAndDiagnose)
-    addAsFieldToClosureType(S, LSI, Var, CaptureType, DeclRefType, Loc,
+    addAsFieldToClosureType(S, LSI, CaptureType, DeclRefType, Loc,
   // Compute the type of a reference to this captured variable.

More information about the cfe-commits mailing list