Revert "embedded: allow dead function elimination for de-serialized functions"

This commit is contained in:
Michael Buch
2024-03-07 16:48:04 +00:00
committed by GitHub
parent 66801fd572
commit 8957f8186a
6 changed files with 9 additions and 41 deletions

View File

@@ -940,9 +940,6 @@ bool SILFunction::shouldBePreservedForDebugger() const {
if (getEffectiveOptimizationMode() != OptimizationMode::NoOptimization)
return false;
if (isAvailableExternally())
return false;
if (hasSemanticsAttr("no.preserve.debugger"))
return false;