This is an archive of the discontinued LLVM Phabricator instance.

[Sema][SVE] Don't allow sizeless types to be caught
ClosedPublic

Authored by rsandifo-arm on Mar 12 2020, 12:03 PM.

Details

Summary

The same rules for throwing and catching incomplete types also apply
to sizeless types. This patch enforces that for try-catch statements.
It also makes sure that we use "sizeless type" rather "incomplete type"
in the associated message. (Both are correct, but "sizeless type" is
more specific and hopefully more user-friendly.)

Diff Detail

Event Timeline

rsandifo-arm created this revision.Mar 12 2020, 12:03 PM

Allow pointers to sizeless types to be caught.

This revision is now accepted and ready to land.Mar 13 2020, 12:48 PM
This revision was automatically updated to reflect the committed changes.