aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
diff options
context:
space:
mode:
authorLuke Drummond <luke.drummond@codeplay.com>2022-09-23 16:50:51 +0100
committerLuke Drummond <luke.drummond@codeplay.com>2022-10-11 15:12:25 +0100
commit940fa35ece5294a115a2fdba89ef6c095d90df0f (patch)
treee14dac98c88ac8019aeac1acf03a90d670f14b91 /llvm/lib/Transforms/Utils/LoopRotationUtils.cpp
parentc7ddbd62d811524726e6f8e293ab1576c5b289f3 (diff)
downloadllvm-940fa35ece5294a115a2fdba89ef6c095d90df0f.zip
llvm-940fa35ece5294a115a2fdba89ef6c095d90df0f.tar.gz
llvm-940fa35ece5294a115a2fdba89ef6c095d90df0f.tar.bz2
[NVPTX] Fix a segfault for bitcasted calls with byval params
`getFunctionParamOptimizedAlign` was being passed a null function argument when getting the callee of a bitcasted function symbol. This is because `CallBase::getCalledFunction` does not look through bitcasts. There is already code to handle this case in `NVPTXTargetLowering::getArgumentAlignment`, which is now hoisted into an NVPTX util. The alignment computation now gracefully handles computing alignment of virtual functions with a check for null.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopRotationUtils.cpp')
0 files changed, 0 insertions, 0 deletions