[CodeGen] Fix string literal address space casting.
authorMichael Liao <michael.hliao@gmail.com>
Thu, 21 Feb 2019 19:40:20 +0000 (19:40 +0000)
committerMichael Liao <michael.hliao@gmail.com>
Thu, 21 Feb 2019 19:40:20 +0000 (19:40 +0000)
commit0ee7bd4ac5862ed18ba41faa5d67160734d4b493
tree3d143234aacd4be398c05cdfc57583020230d9fd
parent948c9f93c4017262db155e57e107a76d4276bd8b
[CodeGen] Fix string literal address space casting.

Summary:
- If a string literal is reused directly, need to add necessary address
  space casting if the target requires that.

Reviewers: yaxunl

Subscribers: jvesely, cfe-commits

Tags: #clang

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

llvm-svn: 354610
clang/lib/CodeGen/CodeGenModule.cpp
clang/test/CodeGenCXX/amdgcn-string-literal.cpp