[all-commits] [llvm/llvm-project] b887e4: [GlobalsAA] Use remove_if to clear AllocsForIndire...

Guy David via All-commits all-commits at lists.llvm.org
Tue May 26 04:10:59 PDT 2026


  Branch: refs/heads/users/guy-david/globalsaa-erase-iter
  Home:   https://github.com/llvm/llvm-project
  Commit: b887e4c539826eb3b39d7f2615f33630a763542b
      https://github.com/llvm/llvm-project/commit/b887e4c539826eb3b39d7f2615f33630a763542b
  Author: Guy David <guyda96 at gmail.com>
  Date:   2026-05-26 (Tue, 26 May 2026)

  Changed paths:
    M llvm/lib/Analysis/GlobalsModRef.cpp

  Log Message:
  -----------
  [GlobalsAA] Use remove_if to clear AllocsForIndirectGlobals entries

DeletionCallbackHandle::deleted() walked AllocsForIndirectGlobals with a
manual iterator and called erase(I) on a match, leaving I dangling on
the next ++I. The recent epoch-based check in DenseMap::erase now
asserts on this. Switch to DenseMap::remove_if, which is the documented
replacement for erase-while-iterating.



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