[all-commits] [llvm/llvm-project] 85f694: [ASan] Convert pointer-pair operands based on type...

ʟᴜɴᴇx via All-commits all-commits at lists.llvm.org
Sun Sep 13 10:49:04 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 85f694b3eeafc07e5c586fa15715facefba71094
      https://github.com/llvm/llvm-project/commit/85f694b3eeafc07e5c586fa15715facefba71094
  Author: ʟᴜɴᴇx <thisissamir04 at gmail.com>
  Date:   2026-09-13 (Sun, 13 Sep 2026)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
    M llvm/test/Instrumentation/AddressSanitizer/asan-detect-invalid-pointer-pair.ll

  Log Message:
  -----------
  [ASan] Convert pointer-pair operands based on type (#218494)

`CreatePointerCast` was being called on everything without checking what
it actually is, so if the operand came from ptrtoint ... to i32 it just
crashes (its not a pointer).

now it check the type first - pointers get pointer-cast, ints get
zext/trunc'd to intptr width.

Fixes #217544

also edited regression tests for this



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