This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Prevent assertion failure in PThreadLockChecker when the implementations of the locking functions are available
ClosedPublic

Authored by xazax.hun on Feb 4 2020, 3:48 PM.

Details

Summary

This is very unlikely to happen for PThreads, but using the CSA on a libc or Fuchsia will trigger this assertion failure.

Diff Detail

Event Timeline

xazax.hun created this revision.Feb 4 2020, 3:48 PM
NoQ accepted this revision.Feb 4 2020, 3:57 PM

That's a safe default behavior, but ideally you should see if the annotation on the function can be applied after inlining. Like, it isn't necessarily always applicable, but when it is, you might be able to improve coverage.

This revision is now accepted and ready to land.Feb 4 2020, 3:57 PM
In D74003#1858144, @NoQ wrote:

That's a safe default behavior, but ideally you should see if the annotation on the function can be applied after inlining. Like, it isn't necessarily always applicable, but when it is, you might be able to improve coverage.

Do you want me to add a FIXME?

NoQ added a comment.Feb 4 2020, 4:14 PM

Do you want me to add a FIXME?

That'd be great, i think.

This revision was automatically updated to reflect the committed changes.