Skip to content

Commit 73d1010

Browse files
[WASM] Fix cross-module-dce for alternative entypoint name
1 parent 56a8f50 commit 73d1010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Serialization/ModuleSummaryIndexer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ bool shouldPreserveFunction(const SILFunction &F) {
314314
F.getName().equals("$ss23_getErrorDomainNSStringyyXlSPyxGs0B0RzlF"))) {
315315
return false;
316316
}
317-
if (F.getName().equals(SWIFT_ENTRY_POINT_FUNCTION)) {
317+
if (F.getName().equals(F.getASTContext().getEntryPointFunctionName())) {
318318
return true;
319319
}
320320

0 commit comments

Comments
 (0)