This is an archive of the discontinued LLVM Phabricator instance.

RetainCountChecker: for now, do not trust the summaries of inlined code
ClosedPublic

Authored by george.karpenkov on Oct 30 2018, 3:03 PM.

Details

Summary

Trusting summaries of inlined code would require a more thorough work,
as the current approach was causing too many false positives, as the new example in test.
The culprit lies in the fact that we currently escape all variables written into a field (but not passed off to unknown functions!), which can result in inconsistent behavior.

rdar://45655344

Diff Detail

Repository
rC Clang

Event Timeline

NoQ accepted this revision.Oct 30 2018, 3:11 PM

Oh well. I guess it was worth a try :)

This revision is now accepted and ready to land.Oct 30 2018, 3:11 PM
This revision was automatically updated to reflect the committed changes.