mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The previous code would always remove the view on exit, even if it had not previously added it (default: case of the switch) In simple cases, this didn't really matter, but if you caused the logger to be reinvoked on self in a loop, then you would end up removing the view before you were done looping over it, and eventually run out of stack space Fixes rdar://19558026 Swift SVN r24737