[all-commits] [llvm/llvm-project] 315bd9: Use std::make_tuple instead initializer list

Lei Zhang via All-commits all-commits at lists.llvm.org
Mon Jun 22 12:45:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 315bd964377fe8a465e2f6c8c7c06ae9c900bb0f
      https://github.com/llvm/llvm-project/commit/315bd964377fe8a465e2f6c8c7c06ae9c900bb0f
  Author: Lei Zhang <antiagainst at google.com>
  Date:   2020-06-22 (Mon, 22 Jun 2020)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LowerExpectIntrinsic.cpp

  Log Message:
  -----------
  Use std::make_tuple instead initializer list

Hopefully this pleases GCC-5 and fixes the build error:

LowerExpectIntrinsic.cpp:62:53: error: converting to
'std::tuple<unsigned int, unsigned int>' from initializer list would use
explicit constructor 'constexpr std::tuple<_T1, _T2>::tuple(_U1&&,
_U2&&) [with _U1 = llvm::cl::opt<unsigned int>&; _U2 =
llvm::cl::opt<unsigned int>&; <template-parameter-2-3> = void; _T1 =
unsigned int; _T2 = unsigned int]'
     return {LikelyBranchWeight, UnlikelyBranchWeight};

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




More information about the All-commits mailing list