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 13, 2024
1 parent c630634 commit a197ebf
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 a197ebf

Please sign in to comment.