[all-commits] [llvm/llvm-project] 67f0a6: [ASan][AMDGPU] Fix Assertion Failure. (#79795)

ampandey-1995 via All-commits all-commits at lists.llvm.org
Mon Jan 29 23:01:53 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 67f0a6917c07df6a21580adb567b1a8964818d92
      https://github.com/llvm/llvm-project/commit/67f0a6917c07df6a21580adb567b1a8964818d92
  Author: ampandey-1995 <137622562+ampandey-1995 at users.noreply.github.com>
  Date:   2024-01-30 (Tue, 30 Jan 2024)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
    A llvm/test/Instrumentation/AddressSanitizer/AMDGPU/asan_instrument_mem_intrinsics.ll

  Log Message:
  -----------
  [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 at amd.com>




More information about the All-commits mailing list