HomePhabricator

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

Authored by rsandifo-arm on Mar 3 2020, 3:06 AM.

Description

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

In the current SVE ACLE spec, the usual rules for throwing and
catching incomplete types also apply to sizeless types. However,
throwing pointers to sizeless types should not pose any real difficulty,
so as an extension, the clang implementation allows that.

This patch enforces these rules for catch statements.

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

Details