This is an archive of the discontinued LLVM Phabricator instance.

[flang] Add algorithm include to runtime/file.cpp for std::min
AbandonedPublic

Authored by DavidTruby on Jul 6 2020, 7:26 AM.

Details

Summary

std::min is only guaranteed to exist in the <algorithm> header.
Currently this builds with libstdc++ because the algorithm include
is coming transitively from elsewhere, however it doesn't build with
libc++.

Diff Detail

Event Timeline

DavidTruby created this revision.Jul 6 2020, 7:26 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 6 2020, 7:26 AM
DavidTruby abandoned this revision.Jul 7 2020, 8:07 AM

Yeah, I posted this first but looks like the other got committed first. No problem!