diff options
author | Elizabeth Andrews <elizabeth.andrews@intel.com> | 2021-10-13 17:12:31 -0700 |
---|---|---|
committer | Elizabeth Andrews <elizabeth.andrews@intel.com> | 2022-01-13 08:06:19 -0800 |
commit | 4eaf5846d0e738264d9328b4a919bc352ea83b7a (patch) | |
tree | 766ddbbdad7e46f79ec349a9c4263317e8f4cf2d /llvm/lib/Object/TapiFile.cpp | |
parent | 1fa4778d03c10bb93e018f885527740c6577a5b3 (diff) | |
download | llvm-4eaf5846d0e738264d9328b4a919bc352ea83b7a.zip llvm-4eaf5846d0e738264d9328b4a919bc352ea83b7a.tar.gz llvm-4eaf5846d0e738264d9328b4a919bc352ea83b7a.tar.bz2 |
[clang] Fix function pointer address space
Functions pointers should be created with program address space. This
patch introduces program address space in TargetInfo. Targets with
non-default (default is 0) address space for functions should explicitly
set this value. This patch fixes a crash on lvalue reference to function
pointer (in device code) when using oneAPI DPC++ compiler.
Differential Revision: https://reviews.llvm.org/D111566
Diffstat (limited to 'llvm/lib/Object/TapiFile.cpp')
0 files changed, 0 insertions, 0 deletions