diff options
author | Justin Holewinski <jholewinski@nvidia.com> | 2015-02-02 21:05:49 +0000 |
---|---|---|
committer | Justin Holewinski <jholewinski@nvidia.com> | 2015-02-02 21:05:49 +0000 |
commit | f37f3d35eb4f3bf4a69cfc4eedaea1caa43d096c (patch) | |
tree | 6d1f2af88524a58ee1fc703c471c4748c5326cbd /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 2f746d4c943a59626925ac625583ddc081b34388 (diff) | |
download | llvm-f37f3d35eb4f3bf4a69cfc4eedaea1caa43d096c.zip llvm-f37f3d35eb4f3bf4a69cfc4eedaea1caa43d096c.tar.gz llvm-f37f3d35eb4f3bf4a69cfc4eedaea1caa43d096c.tar.bz2 |
When generating llvm.used, we may need an addrspacecast instead of a bitcast.
Summary:
This is especially important for targets that use multiple address spaces,
and commonly place global variables in address spaces other than zero.
Fixes PR22383
Test Plan: New test case added: llvm-used.cu
Reviewers: jingyue
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D7345
llvm-svn: 227861
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions