- 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
- rG LLVM Github Monorepo
- Build Status
Buildable 35829 Build 35828: arc lint + arc unit
Event Timeline
llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp | ||
---|---|---|
1296 | Can we just use DAG.getDataLayout() as we do everywhere else? |
llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp | ||
---|---|---|
1296 | 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 | Wait, DL is passed as parameter, I will simplify the patch |
llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp | ||
---|---|---|
1296 | Even better! :-) |
Can we just use DAG.getDataLayout() as we do everywhere else?