This is an archive of the discontinued LLVM Phabricator instance.

Fix PR30520: Fix incomplete type crash when dealing with transparent_union attribute
ClosedPublic

Authored by arphaman on Oct 5 2016, 5:12 AM.

Details

Summary

This patch fixes a crash that happens when clang is analyzing a transparent_union attribute on a union which has a field with incomplete type.

(Right now there's also a C++ crash like this when a field has a dependent type, but I plan on fixing it in a separate patch by analyzing the dependent attribute when the dependent union is instantiated).

Diff Detail

Repository
rL LLVM

Event Timeline

arphaman updated this revision to Diff 73626.Oct 5 2016, 5:12 AM
arphaman retitled this revision from to Fix PR30520: Fix incomplete type crash when dealing with transparent_union attribute.
arphaman updated this object.
arphaman added a reviewer: aaron.ballman.
arphaman set the repository for this revision to rL LLVM.
arphaman added a subscriber: cfe-commits.
rnk accepted this revision.Oct 5 2016, 10:14 AM
rnk added a reviewer: rnk.
rnk added a subscriber: rnk.

lgtm, thanks!

This revision is now accepted and ready to land.Oct 5 2016, 10:14 AM
aaron.ballman accepted this revision.Oct 5 2016, 10:23 AM
aaron.ballman edited edge metadata.

LGTM, thank you!

This revision was automatically updated to reflect the committed changes.