[PATCH] D101519: [C++4OpenCL] Fix reinterpret_cast of vectors
Ole Strohm via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri May 7 04:59:45 PDT 2021
olestrohm updated this revision to Diff 343647.
olestrohm retitled this revision from "[C++4OpenCL] Fix reinterpret_cast of vectors and types with address spaces" to "[C++4OpenCL] Fix reinterpret_cast of vectors".
olestrohm set the repository for this revision to rG LLVM Github Monorepo.
olestrohm added a comment.
Removed the address space related changes. This revision now only allows for reinterpret_cast between vectors of the same size.
Also added tests for two variables that are definitely both vectors.
This now only fixes: https://bugs.llvm.org/show_bug.cgi?id=47977
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101519/new/
https://reviews.llvm.org/D101519
Files:
clang/include/clang/Sema/Sema.h
clang/lib/Sema/SemaCast.cpp
clang/lib/Sema/SemaExpr.cpp
clang/test/CodeGenOpenCLCXX/reinterpret_cast.clcpp
clang/test/SemaOpenCLCXX/reinterpret-cast.clcpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101519.343647.patch
Type: text/x-patch
Size: 5121 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210507/101f16c5/attachment.bin>
More information about the cfe-commits
mailing list