[OpenCL] Fix for TBAA information of pointer after addresspacecast
authorAndrew Savonichev <andrew.savonichev@intel.com>
Wed, 12 Dec 2018 09:51:23 +0000 (09:51 +0000)
committerAndrew Savonichev <andrew.savonichev@intel.com>
Wed, 12 Dec 2018 09:51:23 +0000 (09:51 +0000)
commit87a7e436c0b9b248aa99741815b23c58a648e1a6
tree41c2b17dec7f60909eab8bc2b7aef762f766469d
parent4b94a3064a8499b1cbcd04492c48969c4861f031
[OpenCL] Fix for TBAA information of pointer after addresspacecast

Summary: When addresspacecast is generated resulting pointer should preserve TBAA information from original value.

Reviewers: rjmccall, yaxunl, Anastasia

Reviewed By: rjmccall

Subscribers: asavonic, kosarev, cfe-commits, llvm-commits

Differential Revision: https://reviews.llvm.org/D55262

llvm-svn: 348919
clang/lib/CodeGen/CGExpr.cpp
clang/test/CodeGenOpenCLCXX/address-space-deduction2.cl [new file with mode: 0644]