Skip to content

Commit 94b1759

Browse files
authored
Merge pull request #61848 from gottesmm/pr-1ce4557b1e09a2f5a8afd251c388492597ea3d9f
[silgen] Verify protocol witnesses's SIL right after emitting them.
2 parents c640bca + 873922b commit 94b1759

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/SILGen/SILGenPoly.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4617,4 +4617,7 @@ void SILGenFunction::emitProtocolWitness(
46174617
formalEvalScope.pop();
46184618
scope.pop();
46194619
B.createReturn(loc, reqtResultValue);
4620+
4621+
// Now that we have finished emitting the function, verify it!
4622+
F.verify();
46204623
}

0 commit comments

Comments
 (0)