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.
2 parents 1546a59 + d36822e commit 34db837Copy full SHA for 34db837
lib/SILOptimizer/IPO/DeadFunctionElimination.cpp
@@ -328,6 +328,9 @@ class DeadFunctionAndGlobalElimination {
328
329
LLVM_DEBUG(llvm::dbgs() << " scan function " << F->getName() << '\n');
330
331
+ if (auto *replacedFn = F->getDynamicallyReplacedFunction())
332
+ ensureAlive(replacedFn);
333
+
334
if (auto *adHocWitness = F->getReferencedAdHocRequirementWitnessFunction())
335
ensureAlive(adHocWitness);
336
0 commit comments