[all-commits] [llvm/llvm-project] 61a55c: [flang] Fix error compiling std::min on macos

Tim Keith via All-commits all-commits at lists.llvm.org
Thu Mar 25 11:19:22 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 61a55c8812e790842799ba1de5bd81fe8afb3b16
      https://github.com/llvm/llvm-project/commit/61a55c8812e790842799ba1de5bd81fe8afb3b16
  Author: Tim Keith <tkeith at nvidia.com>
  Date:   2021-03-25 (Thu, 25 Mar 2021)

  Changed paths:
    M flang/unittests/Runtime/buffer.cpp

  Log Message:
  -----------
  [flang] Fix error compiling std::min on macos

On macos, `size_t` is `unsigned long` while `size_t - int64_t` is
`unsigned long long` so std::min requires an explicit type to compile.

Differential Revision: https://reviews.llvm.org/D99340




More information about the All-commits mailing list