]> granicus.if.org Git - clang/commit
Fix undefined behavior when compiling in C++14 due to sized operator delete
authorRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 9 Feb 2016 01:05:04 +0000 (01:05 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Tue, 9 Feb 2016 01:05:04 +0000 (01:05 +0000)
commit0f7f466fd0081ad90040e4b5df0a1611b7911269
tree20a2fdc628c6927345ff328f05db3a1c85afd29d
parent4880b6df49a5b87f8d8412bf929e95bf9feecc17
Fix undefined behavior when compiling in C++14 due to sized operator delete
being called with the wrong size: convert CGFunctionInfo to use TrailingObjects
and ask TrailingObjects to provide a working 'operator delete' for us.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@260181 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/CodeGen/CGFunctionInfo.h
lib/CodeGen/CGCall.cpp