Skip to content

Commit b35be13

Browse files
committed
Simplify code
1 parent 234260f commit b35be13

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/IRGen/GenProto.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2534,8 +2534,7 @@ void IRGenModule::emitSILWitnessTable(SILWitnessTable *wt) {
25342534
IRGen.Opts.UseRelativeProtocolWitnessTables;
25352535
if (useRelativeProtocolWitnessTable &&
25362536
!conf->getConditionalRequirements().empty()) {
2537-
auto nominal = conf->getType()->getAnyNominal();
2538-
auto sig = nominal->getGenericSignatureOfContext();
2537+
auto sig = conf->getGenericSignature();
25392538
sig->forEachParam([&](GenericTypeParamType *param, bool canonical) {
25402539
if (param->isParameterPack()) {
25412540
#ifndef NDEBUG

0 commit comments

Comments
 (0)