[llvm-commits] [patch] More strict checking in LeakDetectorImpl::addGarbage
Rafael Espindola
espindola at google.com
Thu Dec 17 11:59:54 PST 2009
Currently we assert in LeakDetectorImpl::addGarbage that we don't
mark something as garbage twice. Unfortunately, as the comments in the
file say, we do so only in the uncommon case "by far" :-(
The attached patch adds a similar check for the common case. This
makes PR5790 much easier to reproduce and probably helps PR5770 too.
Tested with a "make check-lit". No unexpected failures.
OK for trunk?
Cheers,
--
Rafael Ávila de Espíndola
-------------- next part --------------
A non-text attachment was scrubbed...
Name: assert.patch
Type: text/x-patch
Size: 416 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20091217/d88be232/attachment.bin>
More information about the llvm-commits
mailing list