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 2161f8a commit 174d75eCopy full SHA for 174d75e
lib/IRGen/IRGenSIL.cpp
@@ -965,6 +965,7 @@ class IRGenSILFunction :
965
bool shouldShadowVariable(SILDebugVariable varInfo, bool isAnonymous) {
966
return !IGM.IRGen.Opts.DisableDebuggerShadowCopies
967
&& !IGM.IRGen.Opts.shouldOptimize()
968
+ //Disable shadow in deserialized functions as they might be optimized
969
&& !CurSILFn->wasDeserializedCanonical()
970
&& (!CurSILFn->isSpecialization() || !CurSILFn->getSpecializationInfo()->getParent()->wasDeserializedCanonical())
971
&& !isAnonymous;
0 commit comments