[AMDGPU] Fix assertion due to assuming pointer in default addr space is 32 bit
authorYaxun Liu <Yaxun.Liu@amd.com>
Mon, 6 Nov 2017 13:01:33 +0000 (13:01 +0000)
committerYaxun Liu <Yaxun.Liu@amd.com>
Mon, 6 Nov 2017 13:01:33 +0000 (13:01 +0000)
commit1ac16619d243fe095383b245346c7f63c148594d
tree7d65073eabd1fa6aeda44748dca89f9e77837e95
parent169df4e24b2d95892fc9841786d4fec224a8eeab
[AMDGPU] Fix assertion due to assuming pointer in default addr space is 32 bit

The backend assumes pointer in default addr space is 32 bit, which is not
true for the new addr space mapping and causes assertion for unresolved
functions.

This patch fixes that.

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

llvm-svn: 317476
llvm/lib/Target/AMDGPU/SIISelLowering.cpp
llvm/test/CodeGen/AMDGPU/unsupported-calls.ll