diff options
author | Sven van Haastregt <sven.vanhaastregt@arm.com> | 2019-06-26 13:31:24 +0000 |
---|---|---|
committer | Sven van Haastregt <sven.vanhaastregt@arm.com> | 2019-06-26 13:31:24 +0000 |
commit | f269c05476a4fcb055be233e013966ad0b25391f (patch) | |
tree | 1c528fe705fe509200e9075284c5aef0f66a8eff /lib/Frontend/TestModuleFileExtension.cpp | |
parent | be6c4bde2d2a25fbc78c6217463537a2c47ee33b (diff) | |
download | clang-f269c05476a4fcb055be233e013966ad0b25391f.tar.gz |
[OpenCL] Improve diagnostic for placement new
Without an explicit declaration for placement new, clang would reject
uses of placement new with "'default new' is not supported in OpenCL
C++". This may mislead users into thinking that placement new is not
supported, see e.g. PR42060.
Clarify that placement new requires an explicit declaration.
Differential Revision: https://reviews.llvm.org/D63561
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@364423 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/TestModuleFileExtension.cpp')
0 files changed, 0 insertions, 0 deletions