Commit 9c9853e
Fix a use-after-free crash in ResetObjCLayout (llvm#170360)
operator[] can potentially cause reallocation and invalidate live
iterators if it's called with a key that isn't present in the DenseMap.
Call lookup() instead to prevent the function from inserting new entries
into the DenseMap for ObjC classes that don't have any subclasses.
rdar://1654483321 parent 0c18862 commit 9c9853e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12846 | 12846 | | |
12847 | 12847 | | |
12848 | 12848 | | |
12849 | | - | |
| 12849 | + | |
12850 | 12850 | | |
12851 | 12851 | | |
12852 | 12852 | | |
| |||
0 commit comments