forked from OSchip/llvm-project
[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:
parent
6bfe5361b7
commit
79d9918df6
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue