We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f7f05d commit a5b0270Copy full SHA for a5b0270
lib/SILOptimizer/IPO/DeadFunctionElimination.cpp
@@ -511,14 +511,12 @@ class ExternalFunctionDefinitionsElimination : FunctionLivenessComputation {
511
findAliveFunctions();
512
// Get rid of definitions for all global functions that are not marked as
513
// alive.
514
- bool NeedUpdate = false;
515
for (auto FI = Module->begin(), EI = Module->end(); FI != EI;) {
516
SILFunction *F = &*FI;
517
++FI;
518
// Do not remove bodies of any functions that are alive.
519
if (!isAlive(F)) {
520
if (tryToConvertExternalDefinitionIntoDeclaration(F)) {
521
- NeedUpdate = true;
522
DFEPass->invalidateAnalysis(F,
523
SILAnalysis::InvalidationKind::Everything);
524
}
0 commit comments