aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/Archive.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2022-01-15 15:12:18 -0500
committerMatt Arsenault <Matthew.Arsenault@amd.com>2022-01-17 10:13:25 -0500
commitdc2457c8cf096b35e3addb7fceb252d90803430f (patch)
tree2da8cbddf784ea0121d760153b7ec0ee42aea4a4 /llvm/lib/Object/Archive.cpp
parent9392b40d4b1999c9b33490829552d928a2fa9bab (diff)
downloadllvm-dc2457c8cf096b35e3addb7fceb252d90803430f.zip
llvm-dc2457c8cf096b35e3addb7fceb252d90803430f.tar.gz
llvm-dc2457c8cf096b35e3addb7fceb252d90803430f.tar.bz2
AMDGPU: Fix crashing on calls to C functions from graphics contexts
If we had one of the shader calling conventions calling a default calling convention callee, this would crash when the caller did not have anything to pass to the workitem ID. This is illegal, but we still need to produce something sensible. llvm-reduce likes to replace calls to intrinsics with calls to null or undef, so this does appear and is helpful to avoid hard erroring. Pass undef in this case, as already happened for the other implicit arguments. It might make sense to define the behavior here and pass null for the pointers, and -1 for the workitem ID. We do have extra bits in the workitem ID, so this wouldn't conflict with a valid value.
Diffstat (limited to 'llvm/lib/Object/Archive.cpp')
0 files changed, 0 insertions, 0 deletions