[HIP] Fix visibility for 'extern' device variables.
authorMichael Liao <michael.hliao@gmail.com>
Fri, 7 Jun 2019 19:08:29 +0000 (15:08 -0400)
committerMichael Liao <michael.hliao@gmail.com>
Tue, 5 Nov 2019 19:19:32 +0000 (14:19 -0500)
commit0a220de9e9ca3e6786df6c03fd37668815805c62
tree8e6530e9146db52615db6c5b0a351cab4378d38b
parent6cd47f9dd7dd664ff855fb0d1ed26bf5e4bb77fc
[HIP] Fix visibility for 'extern' device variables.

Summary:
- Fix a bug which misses the change for a variable to be set with
  target-specific attributes.

Reviewers: yaxunl

Subscribers: jvesely, nhaehnle, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D63020
clang/lib/CodeGen/CodeGenModule.cpp
clang/test/CodeGenCUDA/amdgpu-visibility.cu