[all-commits] [llvm/llvm-project] 72ffb1: [Sema][SVE] Don't allow sizeless types to be caught
rsandifo-arm via All-commits
all-commits at lists.llvm.org
Tue Mar 17 05:01:02 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 72ffb16b4cde972dd3b0b5db98d1702fdcccbc6f
https://github.com/llvm/llvm-project/commit/72ffb16b4cde972dd3b0b5db98d1702fdcccbc6f
Author: Richard Sandiford <richard.sandiford at arm.com>
Date: 2020-03-17 (Tue, 17 Mar 2020)
Changed paths:
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Sema/SemaDeclCXX.cpp
M clang/test/SemaCXX/sizeless-1.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list