Richard Smith bca133d0bb Re-commit r259942 (reverted in r260053) with a different workaround for the MSVC bug.
This fixes undefined behavior in C++14 due to the size of the object being
deleted being different from sizeof(dynamic type) when it is allocated with
trailing objects.

MSVC seems to have several bugs around using-declarations changing the access
of a member inherited from a base class, so use forwarding functions instead of
using-declarations to make TrailingObjects::operator delete accessible where
desired.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260180 91177308-0d34-0410-b5e6-96231b3b80d8
2016-02-09 01:03:42 +00:00
..
2016-01-28 20:36:46 +00:00
2015-06-19 01:53:21 +00:00
2014-06-08 22:29:17 +00:00
2015-06-13 17:23:04 +00:00
2014-09-15 21:51:49 +00:00
2015-11-18 00:31:34 +00:00
2014-12-04 16:59:36 +00:00
2014-12-04 16:59:36 +00:00
2014-06-08 22:29:17 +00:00