forked from OSchip/llvm-project
[NFCI] Fix set-but-unused warning in ExprConstant.cpp
This commit is contained in:
parent
5b6b840531
commit
dc46fa41d4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue