[all-commits] [llvm/llvm-project] 3f6a1d: Guard against self-assignment in the DominatorTree...

Tom Honermann via All-commits all-commits at lists.llvm.org
Sat Nov 16 13:39:52 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f6a1d179305f266835242ac7d1e55249c50c074
      https://github.com/llvm/llvm-project/commit/3f6a1d179305f266835242ac7d1e55249c50c074
  Author: Tom Honermann <tom.honermann at intel.com>
  Date:   2024-11-16 (Sat, 16 Nov 2024)

  Changed paths:
    M llvm/include/llvm/Support/GenericDomTree.h

  Log Message:
  -----------
  Guard against self-assignment in the DominatorTreeBase move assignment operator. (#116464)

The `DominatorTreeBase` move assignment operator was not self-assignment
safe because the last thing it does before returning is to release all
resources held by the source object. This issue was reported by a static
analysis tool; no self-assignment is known to occur in practice.



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