[all-commits] [llvm/llvm-project] cd9e5c: Fix the macos build after D71575.

jimingham via All-commits all-commits at lists.llvm.org
Wed Jan 15 18:14:03 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: cd9e5c32302cd3b34b796683eedb072c6a1cfdc1
      https://github.com/llvm/llvm-project/commit/cd9e5c32302cd3b34b796683eedb072c6a1cfdc1
  Author: Jim Ingham <jingham at apple.com>
  Date:   2020-01-15 (Wed, 15 Jan 2020)

  Changed paths:
    M lldb/source/Plugins/ObjectFile/wasm/ObjectFileWasm.cpp

  Log Message:
  -----------
  Fix the macos build after D71575.

size_t and uint64_t are spelled slightly differently on macOS, which was
causing the compiler to error out calling std::min - since the two types have
to be the same.

I fixed this by casting the uint64_t computation to a size_t.  That's probably
not the cleanest solution, but it gets us back to building.




More information about the All-commits mailing list