OSDN Git Service

IR: remove dead code
authorDylan Noblesmith <nobled@dreamwidth.org>
Mon, 25 Aug 2014 00:28:27 +0000 (00:28 +0000)
committerDylan Noblesmith <nobled@dreamwidth.org>
Mon, 25 Aug 2014 00:28:27 +0000 (00:28 +0000)
commitc11cb6914d8fc28b4d4dc53843c4f426da9db159
tree2cd25f19fc7eb557a205cdaef155c76602d27963
parent273fd11da9c2c6581844c91dad6901986c50ed12
IR: remove dead code

This was added in r134994, to fix a memory leak;
three days later, r135248 switched
ContainedTys from being new-allocated to being allocated
via BumpPtrAllocator, and the earlier fix was never
reverted.

The destructor doesn't seem to ever actually be called
on Types anyway, so it's harmless, but if it were,
this'd be an invalid pointer.

This reverts r134994.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216354 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/DerivedTypes.h