HomePhabricator

[clang-tidy] Fix altera-struct-pack-align crash for struct fields with…

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

Description

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

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

This fixes bugzilla issue 50313.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D102569