From 79d9918df616296522147efea8357e01464e036f Mon Sep 17 00:00:00 2001 From: Peter Klausler Date: Tue, 9 Aug 2022 09:20:30 -0700 Subject: [PATCH] [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 --- flang/runtime/io-stmt.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/flang/runtime/io-stmt.cpp b/flang/runtime/io-stmt.cpp index 65d3eb9..d2e32f1 100644 --- a/flang/runtime/io-stmt.cpp +++ b/flang/runtime/io-stmt.cpp @@ -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() { -- 2.7.4