[NFCI] Fix set-but-unused warning in ExprConstant.cpp

This commit is contained in:
Dávid Bolvanský 2022-03-24 07:47:50 +01:00
parent 5b6b840531
commit dc46fa41d4
1 changed files with 0 additions and 2 deletions

View File

@ -10102,7 +10102,6 @@ bool RecordExprEvaluator::VisitLambdaExpr(const LambdaExpr *E) {
// Iterate through all the lambda's closure object's fields and initialize
// them.
auto *CaptureInitIt = E->capture_init_begin();
const LambdaCapture *CaptureIt = ClosureClass->captures_begin();
bool Success = true;
const ASTRecordLayout &Layout = Info.Ctx.getASTRecordLayout(ClosureClass);
for (const auto *Field : ClosureClass->fields()) {
@ -10126,7 +10125,6 @@ bool RecordExprEvaluator::VisitLambdaExpr(const LambdaExpr *E) {
return false;
Success = false;
}
++CaptureIt;
}
return Success;
}