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 56e024d commit d36822eCopy full SHA for d36822e
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