|
|
|
|
@ -162,7 +162,7 @@ namespace ICSharpCode.Decompiler.ILAst
@@ -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; |
|
|
|
|
|