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)
commitc99f11b37343ccd955935cc87a4262311077a4b7
tree377ce6f03e51ed3ee5ab9cb619ac5588db78760d
parent1b65c3279d75428d2e1ae1a196c4884d6745d0d8
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.

llvm-svn: 260181
clang/include/clang/CodeGen/CGFunctionInfo.h
clang/lib/CodeGen/CGCall.cpp