[llvm-commits] CVS: llvm/lib/VMCore/Function.cpp Instructions.cpp Type.cpp
Chris Lattner
clattner at apple.com
Mon Apr 9 10:27:02 PDT 2007
On Apr 9, 2007, at 10:22 AM, Reid Spencer wrote:
> On Mon, 2007-04-09 at 10:14 -0700, Chris Lattner wrote:
>> The function and callinst dtors need to delete their attributes.
>
> No one is setting these yet so there's no leaks.
I understand.
> The next patch will
> unique the attributes in which case they should *not* be deleted. Use
> of ParamAttrsList in Function and CallInst won't begin until the
> uniquing is implemented.
Uniquing is tricky in the face of mutation. I'd suggest doing an
intermediate increment where you *just* move the attributes to call/
invoke/function without uniquing, then unique them as another step.
> Speaking of which, do these need to be refcounted so they go away when
> the last use disappears?
Yep, that sounds good.
-Chris
More information about the llvm-commits
mailing list