[all-commits] [llvm/llvm-project] 113173: [NFC][asan] Re-use ErrorGeneric::shadow_val (#195684)

Vitaly Buka via All-commits all-commits at lists.llvm.org
Mon May 4 16:45:57 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 11317352614b0009d5bd265ac1d8c0c6b8e207de
      https://github.com/llvm/llvm-project/commit/11317352614b0009d5bd265ac1d8c0c6b8e207de
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2026-05-04 (Mon, 04 May 2026)

  Changed paths:
    M compiler-rt/lib/asan/asan_errors.cpp

  Log Message:
  -----------
  [NFC][asan] Re-use ErrorGeneric::shadow_val (#195684)

It's done to reduce code size, as additional load on reporting is
negligible.

This requires change in ErrorGeneric constructor, to now we skip partial
shadow only if next one has a better value.

Before shadow_val was either `0x[a-f].` or 0.
Now it may be partial granule as well.

However it's NFC as  `0 < shadow_val < ASAN_SHADOW_GRANULARITY` does not
affect reporting outside of `CheckPoisonRecords`.



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