Browse Source

Fix`CachedDelegatenitializationVB` pattern

pull/2844/head
ElektroKill 3 years ago
parent
commit
00e7524780
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

@ -218,7 +218,7 @@ namespace ICSharpCode.Decompiler.IL.Transforms @@ -218,7 +218,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 (!(trueInitValue is StObj stobj) || !(falseInitValue is LdObj ldobj))
return false;

Loading…
Cancel
Save