This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Fix bug in isInevitablySinking
ClosedPublic

Authored by george.karpenkov on Sep 19 2018, 3:17 PM.

Details

Summary

If the non-sink report is generated at the exit node, it will be suppressed by the current functionality in isInevitablySinking, as it only checks the successors of the block, but not the block itself.

I don't have an isolated test yet, but it does show up in retain-count-checker.

Diff Detail

Repository
rL LLVM

Event Timeline

NoQ accepted this revision.Sep 20 2018, 1:39 PM

Yup. Ugh.

This revision is now accepted and ready to land.Sep 20 2018, 1:39 PM
This revision was automatically updated to reflect the committed changes.