[LLVMdev] Possible Bad Assertion in Value.cpp
John Criswell
criswell at uiuc.edu
Fri Feb 15 16:38:59 PST 2008
Chris Lattner wrote:
>>> If you write your code as an llvm pass, you should automatically get
>>> notified of this stuff in a debug build. If you can't do that,
>>> manually interfacing to the LeakDetector can help.
>>>
>>>
>> It is an LLVM pass, it's a debug build, and the only assertion I got
>> was
>> the one in ~Value().
>>
>> Should there have been an earlier assertion?
>>
>
> You load a module, run your pass (which leaks an instruction) from the
> passmgr, then delete the module?
>
Yes, that's what the code was doing.
-- John T.
> -Chris
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
More information about the llvm-dev
mailing list