Browse Source

Fix `CachedDelegateInitializationVBWithClosure` stack slot check

pull/2844/head
ElektroKill 3 years ago
parent
commit
ea19843fbd
No known key found for this signature in database
GPG Key ID: 7E3C5C084E40E3EC
  1. 2
      ICSharpCode.Decompiler/IL/Transforms/CachedDelegateInitialization.cs

2
ICSharpCode.Decompiler/IL/Transforms/CachedDelegateInitialization.cs

@ -261,7 +261,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms @@ -261,7 +261,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms
{
return false;
}
if (s.Kind != VariableKind.StackSlot || s.StoreCount != 2 || s.LoadCount != 1)
if (s.Kind != VariableKind.StackSlot || s.StoreCount != 2)
return false;
if (!(falseInitValue is StObj stobj) || !(trueInitValue is LdObj ldobj))
return false;

Loading…
Cancel
Save