Skip to content

Commit b3e5f07

Browse files
committed
SILFunction: don't preserve specialized functions for the debugger
1 parent a98448b commit b3e5f07

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/SIL/IR/SILFunction.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,9 @@ bool SILFunction::shouldBePreservedForDebugger() const {
889889
if (!isDefinition())
890890
return false;
891891

892+
if (getLinkage() == SILLinkage::Shared)
893+
return false;
894+
892895
// Don't preserve anything markes as always emit into client.
893896
if (markedAsAlwaysEmitIntoClient())
894897
return false;

0 commit comments

Comments
 (0)