Skip to content

Commit 70c84f8

Browse files
committed
[clang][NFC] Remove unused parameter
1 parent 00d809c commit 70c84f8

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

clang/include/clang/Sema/Sema.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7311,8 +7311,7 @@ class Sema final {
73117311

73127312
/// ActOnLambdaExpr - This is called when the body of a lambda expression
73137313
/// was successfully completed.
7314-
ExprResult ActOnLambdaExpr(SourceLocation StartLoc, Stmt *Body,
7315-
Scope *CurScope);
7314+
ExprResult ActOnLambdaExpr(SourceLocation StartLoc, Stmt *Body);
73167315

73177316
/// Does copying/destroying the captured variable have side effects?
73187317
bool CaptureHasSideEffects(const sema::Capture &From);

clang/lib/Parse/ParseExprCXX.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1548,7 +1548,7 @@ ExprResult Parser::ParseLambdaExpressionAfterIntroducer(
15481548

15491549
if (!Stmt.isInvalid() && !TrailingReturnType.isInvalid() &&
15501550
!D.isInvalidType())
1551-
return Actions.ActOnLambdaExpr(LambdaBeginLoc, Stmt.get(), getCurScope());
1551+
return Actions.ActOnLambdaExpr(LambdaBeginLoc, Stmt.get());
15521552

15531553
Actions.ActOnLambdaError(LambdaBeginLoc, getCurScope());
15541554
return ExprError();

clang/lib/Sema/SemaLambda.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1885,8 +1885,7 @@ ExprResult Sema::BuildCaptureInit(const Capture &Cap,
18851885
return InitSeq.Perform(*this, Entity, InitKind, InitExpr);
18861886
}
18871887

1888-
ExprResult Sema::ActOnLambdaExpr(SourceLocation StartLoc, Stmt *Body,
1889-
Scope *CurScope) {
1888+
ExprResult Sema::ActOnLambdaExpr(SourceLocation StartLoc, Stmt *Body) {
18901889
LambdaScopeInfo LSI = *cast<LambdaScopeInfo>(FunctionScopes.back());
18911890
ActOnFinishFunctionBody(LSI.CallOperator, Body);
18921891
return BuildLambdaExpr(StartLoc, Body->getEndLoc(), &LSI);

0 commit comments

Comments
 (0)