[all-commits] [llvm/llvm-project] 25f941: [compiler-rt][ubsan][nfc-ish] Fix a type conversio...

Alan Zhao via All-commits all-commits at lists.llvm.org
Thu Jul 25 17:39:05 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 25f9415713f9f57760a5322876906dc11385ef8e
      https://github.com/llvm/llvm-project/commit/25f9415713f9f57760a5322876906dc11385ef8e
  Author: Alan Zhao <ayzhao at google.com>
  Date:   2024-07-25 (Thu, 25 Jul 2024)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_ptrauth.h

  Log Message:
  -----------
  [compiler-rt][ubsan][nfc-ish] Fix a type conversion bug (#100665)

If the inline asm version of `ptrauth_strip` is used instead of the
builtin, the inline asm implementation currently returns an unsigned
long, causing an incompatible pointer conversion issue. The spec for
`ptrauth_sign` is that the result has the same type as the original
value, so we add a cast to the result of the inline asm.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list