mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Definite initialization for initializers relying on a separate ivar initializer.
When we decide to emit a separate ivar initializer method (via the Objective-C entry point -.cxx_construct), we no longer initialize the ivars within the initializer. This only happens for derived classes, so teach DI about uninitialized 'self' values that require a super.init call but don't require the ivars to be initialized. Swift SVN r12240
This commit is contained in:
@@ -622,6 +622,9 @@ public:
|
||||
case MarkUninitializedInst::GlobalVar: OS << "[globalvar] "; break;
|
||||
case MarkUninitializedInst::RootSelf: OS << "[rootself] "; break;
|
||||
case MarkUninitializedInst::DerivedSelf: OS << "[derivedself] "; break;
|
||||
case MarkUninitializedInst::DerivedSelfOnly:
|
||||
OS << "[derivedselfonly] ";
|
||||
break;
|
||||
case MarkUninitializedInst::DelegatingSelf: OS << "[delegatingself] ";break;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user