This is an archive of the discontinued LLVM Phabricator instance.

[analyzer] Admit that some copy/move constructors have more than one argument.
ClosedPublic

Authored by NoQ on Jul 11 2018, 6:48 PM.

Details

Summary

Copy/move constructors may have additional default arguments and still be treated as normal copy/move constructors. Copy elision code expected this to not be a thing, for no particular reason. Remove the premature assertion.

Hopefully addresses the crash posted by @alexfh in http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20180702/233796.html

Diff Detail

Repository
rL LLVM

Event Timeline

NoQ created this revision.Jul 11 2018, 6:48 PM
george.karpenkov accepted this revision.Jul 11 2018, 6:48 PM
This revision is now accepted and ready to land.Jul 11 2018, 6:48 PM
NoQ updated this revision to Diff 155105.Jul 11 2018, 6:52 PM

Actually verify the CFG in the test.

This revision was automatically updated to reflect the committed changes.