[flang] Fix build warning from newer compilers

Remove a lambda capture of "[this]" in two cases where it
is no longer required.  Will be pushed without waiting for
review if CI is successful in order to resolve a sad build bot.

Differential Revision: https://reviews.llvm.org/D131506
This commit is contained in:
Peter Klausler 2022-08-09 09:20:30 -07:00
parent 6bfe5361b7
commit 79d9918df6
1 changed files with 2 additions and 3 deletions

View File

@ -456,12 +456,11 @@ void IoStatementState::HandleAbsolutePosition(std::int64_t n) {
}
void IoStatementState::CompleteOperation() {
common::visit([this](auto &x) { x.get().CompleteOperation(); }, u_);
common::visit([](auto &x) { x.get().CompleteOperation(); }, u_);
}
int IoStatementState::EndIoStatement() {
return common::visit(
[this](auto &x) { return x.get().EndIoStatement(); }, u_);
return common::visit([](auto &x) { return x.get().EndIoStatement(); }, u_);
}
ConnectionState &IoStatementState::GetConnectionState() {