Skip to content

Commit 4f38eb3

Browse files
authored
Merge pull request #41104 from al45tair/eng/PR-87717024
Fix crash on systems with pointer authentication.
2 parents 159c879 + 14da34d commit 4f38eb3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/IRGen/GenPointerAuth.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,10 @@ static void hashStringForType(IRGenModule &IGM, CanType Ty, raw_ostream &Out,
442442
hashStringForType(IGM, UnwrappedTy->getCanonicalType(), Out, genericEnv);
443443
Out << ">";
444444
}
445+
} else if (auto ETy = dyn_cast<ExistentialType>(Ty)) {
446+
// Look through existential types
447+
hashStringForType(IGM, ETy->getConstraintType()->getCanonicalType(),
448+
Out, genericEnv);
445449
} else if (auto GTy = dyn_cast<AnyGenericType>(Ty)) {
446450
// For generic and non-generic value types, use the mangled declaration
447451
// name, and ignore all generic arguments.

0 commit comments

Comments
 (0)