Files
swift-mirror/lib/SILOptimizer/Utils/LoadStoreOptUtils.cpp
Erik Eckstein f80f31d9f2 fix a use-after-free problem in redundant load elimination
This shows up in an assert in RLE, but is very hard to reproduce.
The problem was that the reference to the Values map element is potentially invalidated when assigning to the Values map in this line:
   Values[Base] = FirstVal.stripLastLevelProjection();

hopefully fixes rdar://problem/29922800
2017-01-09 16:13:51 -08:00

9.4 KiB