This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Fix altera-struct-pack-align crash for struct fields with incomplete type
ClosedPublic

Authored by jubnzv on May 15 2021, 10:50 PM.

Details

Summary

We can only use ASTContext::getTypeInfo for complete types.

This fixes the following bugzilla issue: https://bugs.llvm.org/show_bug.cgi?id=50313.

Diff Detail

Event Timeline

jubnzv created this revision.May 15 2021, 10:50 PM
jubnzv requested review of this revision.May 15 2021, 10:50 PM
aaron.ballman accepted this revision.May 17 2021, 5:25 AM

LGTM, thank you for the fix!

This revision is now accepted and ready to land.May 17 2021, 5:25 AM