[LLVMdev] assertion in LeakDetector
isanbard at gmail.com
Wed Jun 3 17:26:37 PDT 2009
On Wed, Jun 3, 2009 at 5:10 PM, Manjunath Kudlur <keveman at gmail.com> wrote:
> I am seeing the following assertion in leak detector.
> void<unnamed>::LeakDetectorImpl<T>::addGarbage(const T*) [with T =
> void]: Assertion `Ts.count(Cache) == 0 && "Object already in set!"'
> I am creating a list of instructions using BuildMI() and adding them
> to a basic block using BB->insert(). I am seeing this assertion after
> some number of insertions. Am I doing something wrong?
If you are using BuildMI(), you shouldn't have to re-insert the
instruction into the machine basic block.
More information about the llvm-dev