This is an archive of the discontinued LLVM Phabricator instance.

[clang] Do not crash when CXXRecordDecl has a non-CXXRecordDecl base.
ClosedPublic

Authored by adamcz on Jan 14 2021, 11:58 AM.

Details

Summary

This can happen on some invalid code, like the included test case.

Diff Detail

Event Timeline

adamcz requested review of this revision.Jan 14 2021, 11:58 AM
adamcz created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 14 2021, 11:58 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
hokein accepted this revision.Jan 14 2021, 12:00 PM

Thanks!

This revision is now accepted and ready to land.Jan 14 2021, 12:00 PM
This revision was landed with ongoing or failed builds.Jan 14 2021, 12:28 PM
This revision was automatically updated to reflect the committed changes.