[all-commits] [llvm/llvm-project] 094729: [Sema][SVE] Reject sizeless types in exception specs
rsandifo-arm via All-commits
all-commits at lists.llvm.org
Tue Mar 17 04:45:02 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 0947296902075aaa240d78f66aa0708f825ffb35
https://github.com/llvm/llvm-project/commit/0947296902075aaa240d78f66aa0708f825ffb35
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/SemaExceptionSpec.cpp
M clang/test/SemaCXX/sizeless-1.cpp
Log Message:
-----------
[Sema][SVE] Reject sizeless types in exception specs
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 explicit exception specs.
Differential Revision: https://reviews.llvm.org/D76087
More information about the All-commits
mailing list