Skip to content

Commit 2f23375

Browse files
committed
Do not emit shadow copies in deserialized functions
1 parent 2dd6954 commit 2f23375

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/IRGen/IRGenSIL.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,8 @@ class IRGenSILFunction :
965965
bool shouldShadowVariable(SILDebugVariable varInfo, bool isAnonymous) {
966966
return !IGM.IRGen.Opts.DisableDebuggerShadowCopies
967967
&& !IGM.IRGen.Opts.shouldOptimize()
968+
&& !CurSILFn->wasDeserializedCanonical()
969+
&& (!CurSILFn->isSpecialization() || !CurSILFn->getSpecializationInfo()->getParent()->wasDeserializedCanonical())
968970
&& !isAnonymous;
969971
}
970972

0 commit comments

Comments
 (0)