aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2018-02-13 17:32:31 +0000
committerSam Clegg <sbc@chromium.org>2018-02-13 17:32:31 +0000
commit38f52b2eb848e1b8564af6fa50626483ba6723d3 (patch)
tree147a958a804007686fa4150d72a48bb83e632d66 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parenta9cf311d5b18fcac7bdfe33848a55608f6c6ae18 (diff)
downloadllvm-38f52b2eb848e1b8564af6fa50626483ba6723d3.zip
llvm-38f52b2eb848e1b8564af6fa50626483ba6723d3.tar.gz
llvm-38f52b2eb848e1b8564af6fa50626483ba6723d3.tar.bz2
Check that Symbol types are trivially destructible
This adds an extra level of static safety to our use of placement new to allocate Symbol types. It prevents the accidental addition on a non-trivially-destructible member that could allocate and leak memory. From the spec: Storage occupied by trivially destructible objects may be reused without calling the destructor. Differential Revision: https://reviews.llvm.org/D43244 llvm-svn: 325025
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions