Skip to content

Commit 9e21831

Browse files
authored
Merge pull request #41121 from al45tair/eng/PR-87717024-5.6
Fix crash on systems with pointer authentication. (Cherry pick of #41104)
2 parents a33eaf6 + c50c2cd commit 9e21831

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
@@ -441,6 +441,10 @@ static void hashStringForType(IRGenModule &IGM, CanType Ty, raw_ostream &Out,
441441
hashStringForType(IGM, UnwrappedTy->getCanonicalType(), Out, genericEnv);
442442
Out << ">";
443443
}
444+
} else if (auto ETy = dyn_cast<ExistentialType>(Ty)) {
445+
// Look through existential types
446+
hashStringForType(IGM, ETy->getConstraintType()->getCanonicalType(),
447+
Out, genericEnv);
444448
} else if (auto GTy = dyn_cast<AnyGenericType>(Ty)) {
445449
// For generic and non-generic value types, use the mangled declaration
446450
// name, and ignore all generic arguments.

0 commit comments

Comments
 (0)