[flang-commits] [flang] e07736f - [flang] Add missing include. NFCI.

Diana Picus via flang-commits flang-commits at lists.llvm.org
Wed Dec 22 01:18:42 PST 2021


Author: Diana Picus
Date: 2021-12-22T09:17:50Z
New Revision: e07736fe3c78bf02c1eb922a04065840a8e13935

URL: https://github.com/llvm/llvm-project/commit/e07736fe3c78bf02c1eb922a04065840a8e13935
DIFF: https://github.com/llvm/llvm-project/commit/e07736fe3c78bf02c1eb922a04065840a8e13935.diff

LOG: [flang] Add missing include. NFCI.

descriptor.h is using std::max, so it should include <algorithm>.

This should fix a build issue on Windows on Arm.

Added: 
    

Modified: 
    flang/include/flang/Runtime/descriptor.h

Removed: 
    


################################################################################
diff  --git a/flang/include/flang/Runtime/descriptor.h b/flang/include/flang/Runtime/descriptor.h
index dc2f2b77356d5..9666f9c0422a1 100644
--- a/flang/include/flang/Runtime/descriptor.h
+++ b/flang/include/flang/Runtime/descriptor.h
@@ -21,6 +21,7 @@
 #include "flang/ISO_Fortran_binding.h"
 #include "flang/Runtime/memory.h"
 #include "flang/Runtime/type-code.h"
+#include <algorithm>
 #include <cassert>
 #include <cinttypes>
 #include <cstddef>


        


More information about the flang-commits mailing list