mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SILGen] Use getTypecheckedBody
Use `getTypecheckedBody` to allow lazy type-checking when emitting function definitions.
This commit is contained in:
@@ -510,8 +510,8 @@ void SILGenFunction::emitFunction(FuncDecl *fd) {
|
||||
fd->getResultInterfaceType(), fd->hasThrows(), fd->getThrowsLoc());
|
||||
prepareEpilog(true, fd->hasThrows(), CleanupLocation(fd));
|
||||
|
||||
emitProfilerIncrement(fd->getBody());
|
||||
emitStmt(fd->getBody());
|
||||
emitProfilerIncrement(fd->getTypecheckedBody());
|
||||
emitStmt(fd->getTypecheckedBody());
|
||||
|
||||
emitEpilog(fd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user