File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -1252,23 +1252,19 @@ class SourceFileScope {
1252
1252
1253
1253
sgm.TopLevelSGF = new SILGenFunction (sgm, *toplevel);
1254
1254
sgm.TopLevelSGF ->MagicFunctionName = sgm.SwiftModule ->getName ();
1255
- sgm.TopLevelSGF ->prepareEpilog (Type (), false ,
1256
- CleanupLocation::getModuleCleanupLocation ());
1257
-
1258
- sgm.TopLevelSGF ->prepareRethrowEpilog (
1259
- CleanupLocation::getModuleCleanupLocation ());
1255
+ auto moduleCleanupLoc = CleanupLocation::getModuleCleanupLocation ();
1256
+ sgm.TopLevelSGF ->prepareEpilog (Type (), true , moduleCleanupLoc);
1260
1257
1261
1258
// Create the argc and argv arguments.
1262
- auto PrologueLoc = RegularLocation::getModuleLocation ();
1263
- PrologueLoc .markAsPrologue ();
1259
+ auto prologueLoc = RegularLocation::getModuleLocation ();
1260
+ prologueLoc .markAsPrologue ();
1264
1261
auto entry = sgm.TopLevelSGF ->B .getInsertionBB ();
1265
1262
auto paramTypeIter =
1266
1263
sgm.TopLevelSGF ->F .getConventions ().getParameterSILTypes ().begin ();
1267
1264
entry->createFunctionArgument (*paramTypeIter);
1268
1265
entry->createFunctionArgument (*std::next (paramTypeIter));
1269
1266
1270
- scope.emplace (sgm.TopLevelSGF ->Cleanups ,
1271
- CleanupLocation::getModuleCleanupLocation ());
1267
+ scope.emplace (sgm.TopLevelSGF ->Cleanups , moduleCleanupLoc);
1272
1268
}
1273
1269
}
1274
1270
You can’t perform that action at this time.
0 commit comments