Skip to content

Commit 9c00c38

Browse files
authored
Merge pull request #15281 from gottesmm/pr-8eebff2ad3ce23bb2992d71de1a31b1421b2194f
[silgen] When emitting a vtable thunk, verify the thunk after emissio…
2 parents 8e4c216 + 69b38b6 commit 9c00c38

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/SILGen/SILGenPoly.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3404,6 +3404,10 @@ SILGenFunction::emitVTableThunk(SILDeclRef derived,
34043404

34053405
scope.pop();
34063406
B.createReturn(loc, result);
3407+
3408+
// Now that the thunk body has been completely emitted, verify the
3409+
// body early.
3410+
F.verify();
34073411
}
34083412

34093413
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)