[all-commits] [llvm/llvm-project] 8c5c60: [Sema][SVE] Reject by-copy capture of sizeless types
rsandifo-arm via All-commits
all-commits at lists.llvm.org
Fri Mar 13 12:28:13 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 8c5c60a493ca31c7e808ca48a99ed4bd5900b43d
https://github.com/llvm/llvm-project/commit/8c5c60a493ca31c7e808ca48a99ed4bd5900b43d
Author: Richard Sandiford <richard.sandiford at arm.com>
Date: 2020-03-13 (Fri, 13 Mar 2020)
Changed paths:
M clang/include/clang/Basic/DiagnosticSemaKinds.td
M clang/lib/Sema/SemaExpr.cpp
M clang/test/SemaCXX/sizeless-1.cpp
Log Message:
-----------
[Sema][SVE] Reject by-copy capture of sizeless types
Since fields can't have sizeless type, it also doesn't make sense
to capture sizeless types by value in lambda expressions. This patch
makes sure that we diagnose that and 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.)
Differential Revision: https://reviews.llvm.org/D75738
More information about the All-commits
mailing list