This is an archive of the discontinued LLVM Phabricator instance.

Fix a crash in cppcoreguidelines-pro-type-member-init related to missing constructor bodies.
ClosedPublic

Authored by michael_miller on Apr 19 2016, 9:31 AM.

Details

Summary

Fixes a crash in cppcoreguidelines-pro-type-member-init when checking some record types with a constructor without a body. We now check to make sure the constructor has a body before looking for missing members and base initializers.

Diff Detail

Repository
rL LLVM

Event Timeline

michael_miller retitled this revision from to Fix a crash in cppcoreguidelines-pro-type-member-init related to missing constructor bodies..
michael_miller updated this object.
michael_miller added a subscriber: cfe-commits.
aaron.ballman accepted this revision.Apr 19 2016, 10:00 AM
aaron.ballman edited edge metadata.

LGTM!

This revision is now accepted and ready to land.Apr 19 2016, 10:00 AM
alexfh accepted this revision.Apr 19 2016, 3:12 PM
alexfh edited edge metadata.

LG. Do you need me to submit the patch?

LG. Do you need me to submit the patch?

Yeah, that's be awesome—thanks!

hokein accepted this revision.Apr 20 2016, 1:13 AM
hokein edited edge metadata.

LGTM. Thanks.

This revision was automatically updated to reflect the committed changes.

@michael_miller

You fixing is not completed. The crash still happens, the test case see https://llvm.org/bugs/show_bug.cgi?id=27419.

Could you please take a look on it? Thanks very much.