[all-commits] [llvm/llvm-project] 8d3890: [IR] Fix assertion error in User new/delete edge c...

Marc Auberer via All-commits all-commits at lists.llvm.org
Mon Mar 10 03:54:07 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8d38906d08f0189a7a7f865b267f47cab0a3790f
      https://github.com/llvm/llvm-project/commit/8d38906d08f0189a7a7f865b267f47cab0a3790f
  Author: Marc Auberer <marc.auberer at chillibits.com>
  Date:   2025-03-10 (Mon, 10 Mar 2025)

  Changed paths:
    M llvm/lib/IR/User.cpp

  Log Message:
  -----------
  [IR] Fix assertion error in User new/delete edge case (#129914)

Fixes #129900

If `operator delete` was called after an unsuccessful constructor call
after `operator new`, we ran into undefined behaviour.
This was discovered by our malfunction tests while preparing an upgrade
to LLVM 20, that explicitly check for such kind of bugs.



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