[llvm-commits] [PATCH] simplify construction and destruction of Uses

Jay Foad jay.foad at gmail.com
Thu Jan 13 08:13:00 PST 2011


This patch makes sure that we consistently use placement new to
construct Uses, and that we destroy them before the memory is
deallocated. There should be no change in behaviour (because Use's
constructor did nothing, and its destructor was equivalent to
Use::set(0)) but I think it is more correct.

The patch also simplifies User::dropHungOffUses() and its callers.

OK to commit?

Thanks,
Jay.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: use-ctor-dtor
Type: application/octet-stream
Size: 5402 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110113/14308064/attachment.obj>


More information about the llvm-commits mailing list