diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2020-03-03 11:20:57 +0000 |
---|---|---|
committer | Richard Sandiford <richard.sandiford@arm.com> | 2020-03-17 12:45:00 +0000 |
commit | 4ece6f051bd088fb8d4862bedf590f4f9d86cd17 (patch) | |
tree | 6396fbd2d54a99fad6759bdccbef81ab57137a73 /llvm/lib/CodeGen/CommandFlags.cpp | |
parent | c6b8484e855bffb0a7da487cd715cef774a46fb1 (diff) | |
download | llvm-4ece6f051bd088fb8d4862bedf590f4f9d86cd17.zip llvm-4ece6f051bd088fb8d4862bedf590f4f9d86cd17.tar.gz llvm-4ece6f051bd088fb8d4862bedf590f4f9d86cd17.tar.bz2 |
[Sema][SVE] Reject "delete" with sizeless types
Sizeless types can't be used with "new", so it doesn't make sense
to use them with "delete" either. The SVE ACLE therefore doesn't
allow that.
This is slightly stronger than for normal incomplete types, since:
struct S;
void f(S *s) { delete s; }
is (by necessity) just a default-on warning rather than an error.
Differential Revision: https://reviews.llvm.org/D76219
Diffstat (limited to 'llvm/lib/CodeGen/CommandFlags.cpp')
0 files changed, 0 insertions, 0 deletions