aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Sema/SemaCUDA.cpp
diff options
context:
space:
mode:
authorFraser Cormack <fraser@codeplay.com>2022-03-16 10:14:07 +0000
committerFraser Cormack <fraser@codeplay.com>2022-03-24 19:08:08 +0000
commit2e44b7872bc638ed884ae4aa86e38b3b47e0b65a (patch)
tree638472c4b99cefd2d3a2e835eb2574127fbde5cd /clang/lib/Sema/SemaCUDA.cpp
parent27439a764230e5eb54568b2fc053a20c9005970f (diff)
downloadllvm-2e44b7872bc638ed884ae4aa86e38b3b47e0b65a.zip
llvm-2e44b7872bc638ed884ae4aa86e38b3b47e0b65a.tar.gz
llvm-2e44b7872bc638ed884ae4aa86e38b3b47e0b65a.tar.bz2
[VectorCombine] Insert addrspacecast when crossing address space boundaries
We can not bitcast pointers across different address spaces. This was previously fixed in D89577 but then in D93229 an enhancement was added which peeks further through the ponter operand, opening up the possibility that address-space violations could be introduced. Instead of bailing as the previous fix did, simply insert an addrspacecast cast instruction. Reviewed By: lebedev.ri Differential Revision: https://reviews.llvm.org/D121787
Diffstat (limited to 'clang/lib/Sema/SemaCUDA.cpp')
0 files changed, 0 insertions, 0 deletions