diff --git a/ICSharpCode.Decompiler/ILAst/ILInlining.cs b/ICSharpCode.Decompiler/ILAst/ILInlining.cs index 01427b93e..76fde12bf 100644 --- a/ICSharpCode.Decompiler/ILAst/ILInlining.cs +++ b/ICSharpCode.Decompiler/ILAst/ILInlining.cs @@ -162,7 +162,7 @@ namespace ICSharpCode.Decompiler.ILAst return true; } else if (numLdloc.GetOrDefault(v) == 0 && numLdloca.GetOrDefault(v) == 0) { // The variable is never loaded - if (inlinedExpression.HasNoSideEffects() && v.IsGenerated) { + if (inlinedExpression.HasNoSideEffects()) { // Remove completely body.RemoveAt(pos); return true;