mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Serialization: Fix null dereference in witness deserialization
Fix null dereference in deserialization logic for conformances. If deserializing the witness itself failed, don't try to get its actor isolation. rdar://162158608
This commit is contained in:
@@ -9158,7 +9158,7 @@ void ModuleFile::finishNormalConformance(NormalProtocolConformance *conformance,
|
||||
|
||||
// Determine whether we need to enter the actor isolation of the witness.
|
||||
std::optional<ActorIsolation> enterIsolation;
|
||||
if (*rawIDIter++) {
|
||||
if (*rawIDIter++ && witness) {
|
||||
enterIsolation = getActorIsolation(witness);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user