File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -302,6 +302,10 @@ void FunctionSummaryIndexer::visitKeyPathInst(KeyPathInst *KPI) {
302
302
}
303
303
304
304
bool shouldPreserveFunction (const SILFunction &F) {
305
+ if (F.getName ().equals (SWIFT_ENTRY_POINT_FUNCTION)) {
306
+ return true ;
307
+ }
308
+
305
309
if (F.getRepresentation () == SILFunctionTypeRepresentation::ObjCMethod) {
306
310
return true ;
307
311
}
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ static llvm::cl::opt<std::string>
37
37
38
38
static llvm::DenseSet<GUID> computePreservedGUIDs (ModuleSummaryIndex *summary) {
39
39
llvm::DenseSet<GUID> Set (1 );
40
- Set.insert (getGUIDFromUniqueName (" main" ));
41
40
for (auto FI = summary->functions_begin (), FE = summary->functions_end ();
42
41
FI != FE; ++FI) {
43
42
auto summary = FI->second .get ();
You can’t perform that action at this time.
0 commit comments