mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[IRGen/SIL] More widespread use of SubstitutionMap.
This commit is contained in:
@@ -2085,14 +2085,14 @@ bool SimplifyCFG::simplifyTryApplyBlock(TryApplyInst *TAI) {
|
||||
auto TargetFnTy = CalleeFnTy;
|
||||
if (TargetFnTy->isPolymorphic()) {
|
||||
TargetFnTy = TargetFnTy->substGenericArgs(TAI->getModule(),
|
||||
TAI->getSubstitutions());
|
||||
TAI->getSubstitutionMap());
|
||||
}
|
||||
SILFunctionConventions targetConv(TargetFnTy, TAI->getModule());
|
||||
|
||||
auto OrigFnTy = TAI->getCallee()->getType().getAs<SILFunctionType>();
|
||||
if (OrigFnTy->isPolymorphic()) {
|
||||
OrigFnTy = OrigFnTy->substGenericArgs(TAI->getModule(),
|
||||
TAI->getSubstitutions());
|
||||
TAI->getSubstitutionMap());
|
||||
}
|
||||
SILFunctionConventions origConv(OrigFnTy, TAI->getModule());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user