Skip to content

Commit 174d75e

Browse files
committed
Add comment
1 parent 2161f8a commit 174d75e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/IRGen/IRGenSIL.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -965,6 +965,7 @@ class IRGenSILFunction :
965965
bool shouldShadowVariable(SILDebugVariable varInfo, bool isAnonymous) {
966966
return !IGM.IRGen.Opts.DisableDebuggerShadowCopies
967967
&& !IGM.IRGen.Opts.shouldOptimize()
968+
//Disable shadow in deserialized functions as they might be optimized
968969
&& !CurSILFn->wasDeserializedCanonical()
969970
&& (!CurSILFn->isSpecialization() || !CurSILFn->getSpecializationInfo()->getParent()->wasDeserializedCanonical())
970971
&& !isAnonymous;

0 commit comments

Comments
 (0)