[cfe-commits] [PATCH] WIP: catch CFMakeCollectable(NULL) with static analyzer

Sean McBride sean at rogue-research.com
Mon Nov 5 18:32:30 PST 2012


Jordan,

Updated patch attached.

Thanks,

Sean


On Fri, 2 Nov 2012 09:49:37 -0700, Jordan Rose said:

>Hi, Sean. Thanks for the patch!
>
>Most of the tests in retain-release.m are just top-level functions,
>numbered numerically from lack of imagination. The arguments are fairly
>arbitrary—'p' is just 'pointer' (I think), and 'x' is being used as a
>sort of "coin toss" to arbitrarily create conditions where the analyzer
>considers both branches equally likely.
>
>The actual patch itself looks good, except I'd stick an
>'llvm_unreachable' in a last 'else' case for that chained if-statement.
>
>Your test output is fine; if something broke it would say "Unexpected
>Failures" and probably print output from that test as well.
>
>Once you've updated the patch, please send it back to the list!
>Jordan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: CFMakeCollectable-with-null2.patch
Type: application/octet-stream
Size: 6802 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20121105/50fc7193/attachment.obj>


More information about the cfe-commits mailing list