This is an archive of the discontinued LLVM Phabricator instance.

[clang] Fix a crash on CheckArgAlignment.
ClosedPublic

Authored by hokein on May 19 2021, 1:31 AM.

Details

Summary

We might encounter an undeduced type before calling getTypeAlignInChars.

NOTE: this retrieves the fix from 8f80c66bd2982788a8eede4419684ca72f48b9a2, which was removed in Adam's followup fix fbfcfdbf6828b8d36f4ec0ff5f4eac11fb1411a5. We originally thought the crash was caused by recovery-ast, but it turns out it can occur for other cases, e.g. typo-correction.

Diff Detail

Event Timeline

hokein requested review of this revision.May 19 2021, 1:31 AM
hokein created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2021, 1:31 AM
kadircet accepted this revision.May 19 2021, 3:15 AM

thanks!

This revision is now accepted and ready to land.May 19 2021, 3:15 AM
hokein edited the summary of this revision. (Show Details)May 19 2021, 4:23 AM
This revision was automatically updated to reflect the committed changes.