[PATCH] D83237: [flang] Add missing include for std::min

Tim Keith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 6 12:54:19 PDT 2020


tskeith created this revision.
tskeith added a reviewer: klausler.
tskeith added a project: Flang.
Herald added a reviewer: jdoerfert.
Herald added a reviewer: DavidTruby.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This was causing the build to fail on macos.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D83237

Files:
  flang/runtime/file.cpp


Index: flang/runtime/file.cpp
===================================================================
--- flang/runtime/file.cpp
+++ flang/runtime/file.cpp
@@ -9,6 +9,7 @@
 #include "file.h"
 #include "magic-numbers.h"
 #include "memory.h"
+#include <algorithm>
 #include <cerrno>
 #include <cstring>
 #include <fcntl.h>


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83237.275734.patch
Type: text/x-patch
Size: 317 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200706/1a0e4a83/attachment-0001.bin>


More information about the llvm-commits mailing list