[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)
commitf3983cc14af31e8ad2e6bf3031237040a3afdbf5
treeedd54e292802f7d1b7d3c10533ce2d9632d3a6f8
parent3a56174d85a2c815ef55a24a6935fb4771201026
[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

llvm-svn: 367349
llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
llvm/test/CodeGen/NVPTX/bug41651.ll [new file with mode: 0644]