[PATCH] D65286: [OpenCL] Allow OpenCL C style vector initialization in C++

Anastasia Stulova via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jul 26 04:36:45 PDT 2019


Anastasia added a comment.

In D65286#1601404 <https://reviews.llvm.org/D65286#1601404>, @rjmccall wrote:

> Wait, plain C++?  Do we currently allow this syntax outside of OpenCL?


Ok I looked into this again and it seems apparently vector initialization and literals in C++ have different syntax. So I was incorrect, this fix only works for OpenCL. Not sure how important it is to initialize vectors from other vectors in C++ though. In OpenCL C it is common.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65286/new/

https://reviews.llvm.org/D65286





More information about the cfe-commits mailing list