Files
swift-mirror/lib/SILOptimizer/LoopTransforms/LoopRotate.cpp
Arnold Schwaighofer 59b8813807 LoopRotate: Fix a by reference map bug under reallocation
When using a densemap subscript expression on both sides of an
assignment in the same statement of the same map we run into the issue
that the map can reallocate because of the assignment but we are
referencing the value of the RHS map subscript by reference --
i.e we can reference deallocated memory.

Not good.

My attempts at making a reproducer crash failed.

rdar://151031297
2025-06-04 12:57:00 -07:00

20 KiB