[all-commits] [llvm/llvm-project] 6d03b3: [GlobalsModRef] Don't erase while iterating
Guy David via All-commits
all-commits at lists.llvm.org
Tue May 26 08:51:42 PDT 2026
Branch: refs/heads/users/guy-david/globalsaa-erase-iter
Home: https://github.com/llvm/llvm-project
Commit: 6d03b3965ecf4b3d73efb2466250ed6e810fa5c2
https://github.com/llvm/llvm-project/commit/6d03b3965ecf4b3d73efb2466250ed6e810fa5c2
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:
-----------
[GlobalsModRef] Don't erase while iterating
The loop erases from AllocsForIndirectGlobals while walking it, which
now hits the iterator invalidation assert in DenseMap::erase. Use
remove_if instead.
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