[all-commits] [llvm/llvm-project] fbbea8: [profile] Perform pointer arithmetic in uintptr_t ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Mon Dec 9 03:16:59 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fbbea8929ffd2fae57a6013912455d566b884e12
      https://github.com/llvm/llvm-project/commit/fbbea8929ffd2fae57a6013912455d566b884e12
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-12-09 (Mon, 09 Dec 2024)

  Changed paths:
    M compiler-rt/lib/profile/InstrProfilingMerge.c

  Log Message:
  -----------
  [profile] Perform pointer arithmetic in uintptr_t (#118944)

Based on the feedback from #118782, this switches most of the pointer
arithmetic in __llvm_profile_merge_from_buffer to work on uintptr_t
instead of const char *, only casting back to a pointer when performing
actual accesses.

This ensures that all the arithmetic is performed without any
assumptions about pointer overflow.



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