summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorJingyue Wu <jingyue@google.com>2015-03-25 20:06:28 +0000
committerJingyue Wu <jingyue@google.com>2015-03-25 20:06:28 +0000
commit4f7b9eb217f0a065acffe81189599b7db49a0792 (patch)
treebbfeca6d434823c51a752cb7a38fadd2c4469617 /llvm/lib/CodeGen
parentf9dc7036d3d2f9d0de41a1be127a41d7a9728c78 (diff)
downloadbcm5719-llvm-4f7b9eb217f0a065acffe81189599b7db49a0792.tar.gz
bcm5719-llvm-4f7b9eb217f0a065acffe81189599b7db49a0792.zip
Fix addrspace when emitting constructors of static local variables
Summary: Due to CUDA's implicit address space casting, the type of a static local variable may be more specific (i.e. with address space qualifiers) than the type expected by the constructor. Emit an addrspacecast in that case. Test Plan: Clang used to crash on the added test. Reviewers: nlewycky, pcc, eliben, rsmith Reviewed By: eliben, rsmith Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D8575 llvm-svn: 233208
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud