Skip to content

Commit 79d9918

Browse files
committed
[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
1 parent 6bfe536 commit 79d9918

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

flang/runtime/io-stmt.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -456,12 +456,11 @@ void IoStatementState::HandleAbsolutePosition(std::int64_t n) {
456456
}
457457

458458
void IoStatementState::CompleteOperation() {
459-
common::visit([this](auto &x) { x.get().CompleteOperation(); }, u_);
459+
common::visit([](auto &x) { x.get().CompleteOperation(); }, u_);
460460
}
461461

462462
int IoStatementState::EndIoStatement() {
463-
return common::visit(
464-
[this](auto &x) { return x.get().EndIoStatement(); }, u_);
463+
return common::visit([](auto &x) { return x.get().EndIoStatement(); }, u_);
465464
}
466465

467466
ConnectionState &IoStatementState::GetConnectionState() {

0 commit comments

Comments
 (0)