From 6ffec75c247fcace3e6d06d31152dd3a6d9b5861 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Thu, 12 Oct 2017 23:16:59 +0200 Subject: [PATCH] Run another round of SplitVariables so that the NullableLiftingTransform can work in the switch expression. --- ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs b/ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs index 355464e64..dff75e4c8 100644 --- a/ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs +++ b/ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs @@ -84,6 +84,7 @@ namespace ICSharpCode.Decompiler.CSharp new SwitchDetection(), new SwitchOnStringTransform(), new SwitchOnNullableTransform(), + new SplitVariables(), // split variables once again, because SwitchOnNullableTransform eliminates ldloca new BlockILTransform { // per-block transforms PostOrderTransforms = { // Even though it's a post-order block-transform as most other transforms,