mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
If an instruction references the DynamicSelfType by calling a static member with `Self.foo()`, we consider this a type-dependent use of `self`. This means that at runtime we may need to load the isa pointer, but we don't need to touch any other protected state from the instance. Therefore, we can skip type-dependent uses in the analysis to avoid false positives in this case. An existing test case already exercised the overly-conservative behavior, so I just updated it to not expect an error. Fixes rdar://129676769.
27 KiB
27 KiB