This is an archive of the discontinued LLVM Phabricator instance.

[flang] Suppress a warning in D118631 [-Wunused-result]
ClosedPublic

Authored by sunshaoce on Jan 31 2023, 1:59 AM.

Diff Detail

Event Timeline

sunshaoce created this revision.Jan 31 2023, 1:59 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 31 2023, 1:59 AM
sunshaoce requested review of this revision.Jan 31 2023, 1:59 AM
klausler accepted this revision.Jan 31 2023, 8:15 AM
klausler added inline comments.
flang/lib/Semantics/mod-file.cpp
966

std::erase() might be better

This revision is now accepted and ready to land.Jan 31 2023, 8:15 AM
This revision was automatically updated to reflect the committed changes.
sunshaoce added inline comments.Jan 31 2023, 8:30 AM
flang/lib/Semantics/mod-file.cpp
966

Yes, but requires C++ 20.