mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When a non-value instruction (e.g. a destroy_addr) was deleted, the corresponding cache entry in MemoryBehaviorCache was not invalidated. If a new instruction was allocated at the same memory location, the old - and invalid - cache entry was re-used. This bug triggered a SIL memory lifetime failure in TempRValueElimination. https://bugs.swift.org/browse/SR-13985 rdar://problem/72614608 This change also fixes another problem (which I found by inspection): Individual result values of MultipleValueInstructions were not invalidated correctly.
4.8 KiB
4.8 KiB