freebsd-dev/contrib/llvm-project
Dimitry Andric 9738bc28ab Apply llvm fix for assertion failure compiling recent libc++
Merge commit c7c84b90879f from llvm git (by Adrian Prantl):

  [DwarfDebug] Refuse to emit DW_OP_LLVM_arg values wider than 64 bits

  DwarfExpression::addUnsignedConstant(const APInt &Value) only supports
  wider-than-64-bit values when it is used to emit a top-level DWARF
  expression representing the location of a variable. Before this change,
  it was possible to call addUnsignedConstant on >64 bit values within a
  subexpression when substituting DW_OP_LLVM_arg values.

  This can trigger an assertion failure (e.g. PR52584, PR52333) when it
  happens in a fragment (DW_OP_LLVM_fragment) expression, as
  addUnsignedConstant on >64 bit values splits the constant into separate
  DW_OP_pieces, which modifies DwarfExpression::OffsetInBits.

  This change papers over the assertion errors by bailing on overly wide
  DW_OP_LLVM_arg values. A more comprehensive fix might be to be to split
  wide values into pointer-sized fragments.

  [0] https://github.com/llvm/llvm-project/blob/e71fa03/llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp#L799-L805

  Patch by Ricky Zhou!

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

MFC after:	3 days
2022-01-29 22:28:24 +01:00
..
clang Revert clang change that breaks CTF on aarch64 2021-12-12 21:11:40 +01:00
compiler-rt sanitizers: Improve FreeBSD ASLR detection 2022-01-19 13:07:40 -05:00
libcxx Merge llvm-project release/13.x llvmorg-13.0.0-rc2-43-gf56129fe78d5 2021-11-13 21:45:49 +01:00
libunwind Merge llvm-project release/13.x llvmorg-13.0.0-rc2-43-gf56129fe78d5 2021-11-13 21:45:49 +01:00
lld Merge llvm-project 13.0.0 release 2021-11-13 21:49:29 +01:00
lldb Merge llvm-project release/13.x llvmorg-13.0.0-rc3-8-g08642a395f23 2021-11-13 21:46:08 +01:00
llvm Apply llvm fix for assertion failure compiling recent libc++ 2022-01-29 22:28:24 +01:00
openmp Merge llvm-project release/13.x llvmorg-13.0.0-rc1-97-g23ba3732246a 2021-11-13 21:42:03 +01:00
FREEBSD-Xlist Belatedly update contrib/llvm-project/FREEBSD-Xlist for llvm 13 2021-11-20 18:06:36 +01:00