freebsd-dev/contrib/llvm-project
Dimitry Andric c3ca3130e2 Merge commit 30588a739 from llvm git (by Erich Keane):
Make target features check work with ctor and dtor-

  The problem was reported in PR45468, applying target features to an
  always_inline constructor/destructor runs afoul of GlobalDecl
  construction assert when checking for target-feature compatibility.

  The core problem is fixed by using the version of the check that
  takes a FunctionDecl rather than the GlobalDecl. However, while
  writing the test, I discovered that source locations weren't properly
  set for this check on ctors/dtors. This patch also fixes constructors
  and CALLED destructors.

  Unfortunately, it doesn't seem too possible to get a meaningful
  source location for a 'cleanup' destructor, so those are still
  'frontend' level errors unfortunately. A fixme was added to the test
  to cover that situation.

This should fix 'Assertion failed: (!isa<CXXConstructorDecl>(D) && "Use
other ctor with ctor decls!"), function Init, file
/usr/src/contrib/llvm-project/clang/include/clang/AST/GlobalDecl.h, line
45' when compiling the security/botan2 port.

PR:		245550
MFC after:	6 weeks
X-MFC-With:	358851
2020-04-12 16:06:59 +00:00
..
clang Merge commit 30588a739 from llvm git (by Erich Keane): 2020-04-12 16:06:59 +00:00
compiler-rt Merge ^/vendor/llvm-project/release-10.x up to its last change (upstream 2020-02-27 19:04:39 +00:00
libcxx Merge commit 585a3cc31 from llvm git (by me): 2020-03-18 20:50:30 +00:00
libunwind Merge commit 221c5af4e from llvm git (by Nico Weber): 2020-02-15 15:03:26 +00:00
lld Merge commit 315f8a55f from llvm git (by Fangrui Song): 2020-03-18 20:38:15 +00:00
lldb lldb: use lua as the default script language 2020-04-02 21:08:28 +00:00
llvm Merge commit 459e8e948 from llvm git (by Justin Hibbits): 2020-03-26 17:28:54 +00:00
openmp Merge ^/vendor/lvm-project/master up to its last change (upstream commit 2020-01-24 22:00:03 +00:00
FREEBSD-Xlist lldb: stop excluding bindings/ subdir 2020-04-01 13:18:01 +00:00