[llvm-commits] [PATCH] simplify construction and destruction of Uses
Chris Lattner
clattner at apple.com
Thu Jan 13 13:25:17 PST 2011
On Jan 13, 2011, at 8:13 AM, Jay Foad wrote:
> 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.
This patch looks good to me. Gabor, can you look at this too?
-Chris
More information about the llvm-commits
mailing list