Skip to content

Commit 895eb2a

Browse files
committed
SILCloner: fix creating a wrong type for cloned witness_method instructions
The type needs to be mapped.
1 parent d4192d5 commit 895eb2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/SIL/SILCloner.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2682,7 +2682,7 @@ SILCloner<ImplClass>::visitWitnessMethodInst(WitnessMethodInst *Inst) {
26822682
recordClonedInstruction(Inst,
26832683
getBuilder().createWitnessMethod(
26842684
getOpLocation(Inst->getLoc()), newLookupType,
2685-
conformance, Inst->getMember(), Inst->getType()));
2685+
conformance, Inst->getMember(), getOpType(Inst->getType())));
26862686
}
26872687

26882688
template<typename ImplClass>

0 commit comments

Comments
 (0)