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

Marc Auberer via All-commits all-commits at lists.llvm.org
Fri Apr 11 13:05:47 PDT 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: e0db588f3db40b1486e215c5d0b72a8f9ea2b018
      https://github.com/llvm/llvm-project/commit/e0db588f3db40b1486e215c5d0b72a8f9ea2b018
  Author: Marc Auberer <marc.auberer at chillibits.com>
  Date:   2025-04-11 (Fri, 11 Apr 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.

(cherry picked from commit 8d38906d08f0189a7a7f865b267f47cab0a3790f)



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