This is an archive of the discontinued LLVM Phabricator instance.

Make 'align-mismatch' warning work without an associated function declaration
ClosedPublic

Authored by arphaman on Sep 7 2021, 4:20 PM.

Details

Summary

This change fixes a crash where a NULL fd was used to emit a diagnostic.
Instead of crashing, just avoid printing the declaration name when there's no
associated function declaration.

The crash was introduced in https://reviews.llvm.org/D97187.

Diff Detail

Event Timeline

arphaman created this revision.Sep 7 2021, 4:20 PM
arphaman requested review of this revision.Sep 7 2021, 4:20 PM
ravikandhadai accepted this revision.Oct 29 2021, 11:41 AM

Looks good to me! Thanks!

This revision is now accepted and ready to land.Oct 29 2021, 11:41 AM
This revision was landed with ongoing or failed builds.Oct 29 2021, 1:39 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 29 2021, 1:39 PM