Skip to content

Commit 17eb973

Browse files
committed
Update Devirtualize.cpp
1 parent f431e00 commit 17eb973

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/SILOptimizer/Utils/Devirtualize.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,9 +415,11 @@ combineSubstitutionMaps(SubstitutionMap firstSubMap,
415415
return QuerySubstitutionMap{firstSubMap}(gp);
416416

417417
auto *replacement = GenericTypeParamType::get(
418-
gp->isParameterPack(),
418+
gp->getParamKind(),
419419
gp->getDepth() + secondDepth - firstDepth,
420-
gp->getIndex(), ctx);
420+
gp->getIndex(),
421+
gp->getValueType(),
422+
ctx);
421423
return QuerySubstitutionMap{secondSubMap}(replacement);
422424
},
423425
// We might not have enough information in the substitution maps alone.

0 commit comments

Comments
 (0)