]> granicus.if.org Git - llvm/commit
[NVPTX] Fix PR41651
authorMichael Liao <michael.hliao@gmail.com>
Tue, 30 Jul 2019 19:52:01 +0000 (19:52 +0000)
committerMichael Liao <michael.hliao@gmail.com>
Tue, 30 Jul 2019 19:52:01 +0000 (19:52 +0000)
commit4034ad44e4ac5d9ef10d5eede4d8c9f773a7f609
tree64a066588d74f1681a1beca41fc28176b7af3a20
parent7bbbe571686de8167ec444c379e8bb5e71d174d9
[NVPTX] Fix PR41651

Summary:
- Use the passed `DL` directly as retrieving data layout from CS by
  checking the called function is not reliable. Under indirect function
  call, there is no called function.

Subscribers: jholewinski, hiraditya, llvm-commits

Tags: #llvm

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367349 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/NVPTX/NVPTXISelLowering.cpp
test/CodeGen/NVPTX/bug41651.ll [new file with mode: 0644]