From 00e75247804c6f6150ba5a5872df02f1145fea86 Mon Sep 17 00:00:00 2001 From: ElektroKill Date: Sat, 26 Nov 2022 21:02:39 +0100 Subject: [PATCH] Fix`CachedDelegatenitializationVB` pattern --- .../IL/Transforms/CachedDelegateInitialization.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ICSharpCode.Decompiler/IL/Transforms/CachedDelegateInitialization.cs b/ICSharpCode.Decompiler/IL/Transforms/CachedDelegateInitialization.cs index 25ae17074..4d970f180 100644 --- a/ICSharpCode.Decompiler/IL/Transforms/CachedDelegateInitialization.cs +++ b/ICSharpCode.Decompiler/IL/Transforms/CachedDelegateInitialization.cs @@ -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;