[LLVMdev] assertion in LeakDetector

Manjunath Kudlur keveman at gmail.com
Wed Jun 3 17:10:44 PDT 2009


I am seeing the following assertion in leak detector.

/llvm/lib/VMCore/LeakDetector.cpp:43:
void<unnamed>::LeakDetectorImpl<T>::addGarbage(const T*) [with T =
void]: Assertion `Ts.count(Cache) == 0 && "Object already in set!"'
failed.

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?

Manjunath



More information about the llvm-dev mailing list