[libunwind] Use placement new to avoid dependency C++ library
authorPetr Hosek <phosek@chromium.org>
Fri, 25 Jan 2019 21:39:46 +0000 (21:39 +0000)
committerPetr Hosek <phosek@chromium.org>
Fri, 25 Jan 2019 21:39:46 +0000 (21:39 +0000)
commit90bcfaa2a065bb43b2994c3eb3fa5775ef319e84
treeb07c9dc939ce7fb66dd2ae8b3d7f48c2e7b0f8c3
parent1f9bc2854fd0101c2591bcdf0945f0439ac797db
[libunwind] Use placement new to avoid dependency C++ library

The rest of libunwind already uses placement new, these are the only
places where non-placement new is being used introducing undesirable
C++ library dependency.

Differential Revision: https://reviews.llvm.org/D57251

llvm-svn: 352245
libunwind/src/libunwind.cpp