This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Do not crash on callback for call_once passed by value
ClosedPublic

Authored by george.karpenkov on May 15 2018, 4:09 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

NoQ accepted this revision.May 15 2018, 4:47 PM

Am i understanding correctly that the whole point is that you don't need function to pointer decay when there's already a function pointer?

Sounds reasonable.

This revision is now accepted and ready to land.May 15 2018, 4:47 PM

that you don't need function to pointer decay when there's already a function pointer?

Yes. Weird though that we haven't seen this case before, I'm still not entirely sure why.

This revision was automatically updated to reflect the committed changes.