[all-commits] [llvm/llvm-project] 1d6ebd: Switch from llvm::is_trivially_copyable to std::is...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Dec 2 22:08:04 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d6ebdfb66b9d63d34f34ec6ac7ec57eff7cd24b
      https://github.com/llvm/llvm-project/commit/1d6ebdfb66b9d63d34f34ec6ac7ec57eff7cd24b
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-12-02 (Wed, 02 Dec 2020)

  Changed paths:
    M llvm/docs/ProgrammersManual.rst
    M llvm/include/llvm/ADT/DenseMap.h
    M llvm/include/llvm/ADT/STLExtras.h
    M llvm/include/llvm/DebugInfo/CodeView/TypeHashing.h
    M llvm/tools/llvm-diff/DifferenceEngine.cpp
    M llvm/unittests/ADT/ArrayRefTest.cpp
    M llvm/unittests/ADT/ImmutableListTest.cpp
    M llvm/unittests/ADT/OptionalTest.cpp
    M llvm/unittests/ADT/PointerIntPairTest.cpp
    M llvm/unittests/ADT/StringRefTest.cpp
    M llvm/unittests/Analysis/BlockFrequencyInfoTest.cpp
    M llvm/unittests/Bitstream/BitstreamReaderTest.cpp
    M llvm/unittests/CodeGen/MachineInstrTest.cpp
    M llvm/unittests/CodeGen/TypeTraitsTest.cpp
    M llvm/unittests/IR/CFGBuilder.cpp
    M llvm/unittests/Support/ScaledNumberTest.cpp

  Log Message:
  -----------
  Switch from llvm::is_trivially_copyable to std::is_trivially_copyable

GCC<5 did not support std::is_trivially_copyable. Now LLVM builds require 5.1
we can migrate to std::is_trivially_copyable.

The Optional.h change made MSVC choke
(https://buildkite.com/llvm-project/premerge-checks/builds/18587#cd1bb616-ffdc-4581-9795-b42c284196de)
so I leave it out for now.

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




More information about the All-commits mailing list