- Use the reliable way to retrive the IR module from callsite. As the indirect callsite doesn't have a called function, it would crash the compiler. Retrive the module from CS's call instruction instead.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp | ||
---|---|---|
1296 ↗ | (On Diff #212407) | Can we just use DAG.getDataLayout() as we do everywhere else? |
llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp | ||
---|---|---|
1296 ↗ | (On Diff #212407) | Unfortunately, either DAG or CLI (CallLoweringInfo) is not passed as parameter. Without changing prototype of that function, get data layout from CS is the trivial way. |
llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp | ||
---|---|---|
1296 ↗ | (On Diff #212407) | Wait, DL is passed as parameter, I will simplify the patch |
llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp | ||
---|---|---|
1296 ↗ | (On Diff #212407) | Even better! :-) |