llvm
67f0a691 - [ASan][AMDGPU] Fix Assertion Failure. (#79795)

Commit
2 years ago
[ASan][AMDGPU] Fix Assertion Failure. (#79795) Assertion failure `(i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) && "Calling a function with a bad signature!"'. The 'llvm.memcpy' intercepted by ASan instrumentation pass is implemented by it's own __asan_memcpy implementation. The second argument of llvm.memcpy accepts ptr to addrspace(4), __asan_memcpy also has to follow ptr to addrspace(4) convention. --------- Co-authored-by: Amit Pandey <amit.pandey@amd.com>
Author
Parents
Loading