Skip to content

Commit a5b0270

Browse files
committed
Remove unused variable
1 parent 5f7f05d commit a5b0270

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/SILOptimizer/IPO/DeadFunctionElimination.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -511,14 +511,12 @@ class ExternalFunctionDefinitionsElimination : FunctionLivenessComputation {
511511
findAliveFunctions();
512512
// Get rid of definitions for all global functions that are not marked as
513513
// alive.
514-
bool NeedUpdate = false;
515514
for (auto FI = Module->begin(), EI = Module->end(); FI != EI;) {
516515
SILFunction *F = &*FI;
517516
++FI;
518517
// Do not remove bodies of any functions that are alive.
519518
if (!isAlive(F)) {
520519
if (tryToConvertExternalDefinitionIntoDeclaration(F)) {
521-
NeedUpdate = true;
522520
DFEPass->invalidateAnalysis(F,
523521
SILAnalysis::InvalidationKind::Everything);
524522
}

0 commit comments

Comments
 (0)