forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AST: Struct initializers that assign to self can now be resilient
Initializers for non-fixed-layout structs that are inlinable or are defined in a different module are treated as delegating initializers. Previously, only initializers containing a 'self.init' call were delegating; initializers that assigned to 'self' were not, which resulted in DI treating them as a root initializer where the stored 'self' value was exploded into a series of stores to each stored property member. They were not resilient as a result. Fixes <https://bugs.swift.org/browse/SR-5649>, <rdar://problem/33767516>.
- Loading branch information
1 parent
b5eeae7
commit 065cbd8
Showing
3 changed files
with
60 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters