aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CommandFlags.cpp
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@arm.com>2020-03-03 11:14:57 +0000
committerRichard Sandiford <richard.sandiford@arm.com>2020-03-17 12:23:46 +0000
commit506406c4d59267497d4ac358b49e32b4d2f72119 (patch)
tree080bb2729c62d40e8306c80bef4f34b1936afa63 /llvm/lib/CodeGen/CommandFlags.cpp
parent7c6e52ac0ce5a6879331bc3c322dd20bfec3bf14 (diff)
downloadllvm-506406c4d59267497d4ac358b49e32b4d2f72119.zip
llvm-506406c4d59267497d4ac358b49e32b4d2f72119.tar.gz
llvm-506406c4d59267497d4ac358b49e32b4d2f72119.tar.bz2
[Sema][SVE] Reject "new" with sizeless types
new-expressions for a type T require sizeof(T) to be computable, so the SVE ACLE does not allow them for sizeless types. At the moment: auto f() { return new __SVInt8_t; } creates a call to operator new with a zero size: %call = call noalias nonnull i8* @_Znwm(i64 0) This patch reports an appropriate error instead. Differential Revision: https://reviews.llvm.org/D76218
Diffstat (limited to 'llvm/lib/CodeGen/CommandFlags.cpp')
0 files changed, 0 insertions, 0 deletions