Skip to content

Commit

Permalink
Fixes ConcurrentModificationException
Browse files Browse the repository at this point in the history
Since the prev/nextDFG edges are mirrored, clearing them manually is actually triggering an exception now. This removes the manual removal.
  • Loading branch information
oxisto committed Sep 23, 2024
1 parent 911456e commit e62c0f0
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,6 @@ class DFGPass(ctx: TranslationContext) : ComponentPass(ctx) {
fun handleCallExpression(call: CallExpression, inferDfgForUnresolvedSymbols: Boolean) {
// Remove existing DFG edges since they are no longer valid (e.g. after updating the
// CallExpression with the invokes edges to the called functions)
call.prevDFG.forEach { it.nextDFGEdges.removeIf { edge -> edge.end == call } }
call.prevDFGEdges.clear()

if (call.invokes.isEmpty() && inferDfgForUnresolvedSymbols) {
Expand Down

0 comments on commit e62c0f0

Please sign in to comment.