[PATCH] D101519: [C++4OpenCL] Fix reinterpret_cast of vectors and types with address spaces
Ole Strohm via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 30 08:30:42 PDT 2021
olestrohm added inline comments.
================
Comment at: clang/test/SemaOpenCLCXX/reinterpret-cast.clcpp:1
+// RUN: %clang_cc1 %s -pedantic -verify -fsyntax-only
+
----------------
Anastasia wrote:
> Btw I assume your patch also allows reinterpret_cast between vectors? What happens if we cast b/w vector of 3 elements and vector of 4 elements?
Yes, this is essentially the same as line 10, as int is treated as a 1 element vector, but I can add some more test cases that shows this more specifically.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101519/new/
https://reviews.llvm.org/D101519
More information about the cfe-commits
mailing list