[all-commits] [llvm/llvm-project] ab92a4: [clang-tidy] Fix altera-struct-pack-align crash fo...
Georgiy Komarov via All-commits
all-commits at lists.llvm.org
Mon May 17 06:59:04 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ab92a4c26f54170bf72706ad29c0fb151a177590
https://github.com/llvm/llvm-project/commit/ab92a4c26f54170bf72706ad29c0fb151a177590
Author: Georgy Komarov <jubnzv at gmail.com>
Date: 2021-05-17 (Mon, 17 May 2021)
Changed paths:
M clang-tools-extra/clang-tidy/altera/StructPackAlignCheck.cpp
A clang-tools-extra/test/clang-tidy/checkers/altera-struct-pack-align-no-crash.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list