Crash occurs when parameters to the callback and to std::call_once mismatch, and C++ is supposed to auto-construct an argument.
Filed by Alexander Kornienko in https://bugs.llvm.org/show_bug.cgi?id=36149
rdar://37034403
Paths
| Differential D42777
[analyzer] Fix yet-another-crash in body-farming std::call_once ClosedPublic Authored by george.karpenkov on Jan 31 2018, 6:33 PM.
Details Summary Crash occurs when parameters to the callback and to std::call_once mismatch, and C++ is supposed to auto-construct an argument. Filed by Alexander Kornienko in https://bugs.llvm.org/show_bug.cgi?id=36149 rdar://37034403
Diff Detail
Event TimelineHerald added subscribers: a.sidorin, szepet, kristof.beyls and 3 others. · View Herald TranscriptJan 31 2018, 6:33 PM Comment Actions Yep, looks great.
This revision is now accepted and ready to land.Feb 1 2018, 11:37 AM
george.karpenkov marked an inline comment as done. Closed by commit rC324046: [analyzer] Fix yet-another-crash in body-farming std::call_once (authored by george.karpenkov). · Explain WhyFeb 1 2018, 5:48 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 132518 lib/Analysis/BodyFarm.cpp
test/Analysis/call_once.cpp
|
Actually, this should probably go after the check?