More workarounds for undefined behavior exposed when compiling in C++14 with
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 5 Feb 2016 22:32:52 +0000 (22:32 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 5 Feb 2016 22:32:52 +0000 (22:32 +0000)
commitebfdf26d934913e37b89bdaa037d0e4232f600a3
tree00180b90ca680661250e0e9a0fc1750b06bd23a8
parent6219836edd78a7dd4f710cef314409e0061d8c8d
More workarounds for undefined behavior exposed when compiling in C++14 with
-fsized-deallocation. Disable sized deallocation for all objects derived from
TrailingObjects, as we expect the storage allocated for these objects to be
larger than the size of their dynamic type.

llvm-svn: 259942
llvm/include/llvm/Support/TrailingObjects.h
llvm/lib/IR/AttributeImpl.h
llvm/unittests/Support/TrailingObjectsTest.cpp