[flang-commits] [flang] 79d9918 - [flang] Fix build warning from newer compilers
Peter Klausler via flang-commits
flang-commits at lists.llvm.org
Tue Aug 9 10:09:33 PDT 2022
Author: Peter Klausler
Date: 2022-08-09T10:09:20-07:00
New Revision: 79d9918df616296522147efea8357e01464e036f
URL: https://github.com/llvm/llvm-project/commit/79d9918df616296522147efea8357e01464e036f
DIFF: https://github.com/llvm/llvm-project/commit/79d9918df616296522147efea8357e01464e036f.diff
LOG: [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
Added:
Modified:
flang/runtime/io-stmt.cpp
Removed:
################################################################################
diff --git a/flang/runtime/io-stmt.cpp b/flang/runtime/io-stmt.cpp
index 65d3eb9c7590..d2e32f12b9ff 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() {
More information about the flang-commits
mailing list