mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Inline emitRethrowBB into its only caller, simplifying things.
Have emitEpilog take care of calling emitRethrowEpilog, relieving its clients from having to do it everywhere. NFC. Swift SVN r27469
This commit is contained in:
@@ -410,7 +410,6 @@ void SILGenFunction::emitFunction(FuncDecl *fd) {
|
||||
emitStmt(fd->getBody());
|
||||
|
||||
emitEpilog(fd);
|
||||
emitRethrowEpilog(fd);
|
||||
}
|
||||
|
||||
void SILGenFunction::emitClosure(AbstractClosureExpr *ace) {
|
||||
@@ -431,7 +430,6 @@ void SILGenFunction::emitClosure(AbstractClosureExpr *ace) {
|
||||
autoclosure->getSingleExpressionBody());
|
||||
}
|
||||
emitEpilog(ace);
|
||||
emitRethrowEpilog(ace);
|
||||
}
|
||||
|
||||
void SILGenFunction::emitArtificialTopLevel(ClassDecl *mainClass) {
|
||||
|
||||
Reference in New Issue
Block a user