]> granicus.if.org Git - clang/commit
Ignore pointers to incomplete types when diagnosing misaligned addresses
authorRoger Ferrer Ibanez <roger.ferreribanez@arm.com>
Thu, 7 Dec 2017 09:23:50 +0000 (09:23 +0000)
committerRoger Ferrer Ibanez <roger.ferreribanez@arm.com>
Thu, 7 Dec 2017 09:23:50 +0000 (09:23 +0000)
commite767a3be6ef2b4fc3d64155f9020b844d4bad61b
tree3a96da729aa7842675c0d3e0dbe0c871c6dc844a
parent879a8f700a461afdfe57e2589997410543403337
Ignore pointers to incomplete types when diagnosing misaligned addresses

This is a fix for PR35509 in which we crash because we attempt to compute the
alignment of an incomplete type.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320017 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaChecking.cpp
test/SemaCXX/address-packed.cpp