OSDN Git Service

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)
commit2597d07f15a1a3d6af793437f79b5bc972faeb36
tree962c1003c5b662393d2174dd8240dfd2bf655e3b
parent165b22a2ae402198841bc4f1a6e7f4edf43d8df6
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@259942 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/TrailingObjects.h
lib/IR/AttributeImpl.h
unittests/Support/TrailingObjectsTest.cpp