Class RemoveDeadVariableInit
- Namespace
- ICSharpCode.Decompiler.IL.Transforms
- Assembly
- ICSharpCode.Decompiler.dll
Remove HasInitialValue
from locals that are definitely assigned before every use
(=the initial value is a dead store).
In yield return generators, additionally removes dead 'V = null;' assignments.
Additionally infers IType of stack slots that have StackType.Ref
public class RemoveDeadVariableInit : IILTransform
- Inheritance
-
RemoveDeadVariableInit
- Implements
- Inherited Members
Constructors
RemoveDeadVariableInit()
public RemoveDeadVariableInit()
Methods
Run(ILFunction, ILTransformContext)
public void Run(ILFunction function, ILTransformContext context)
Parameters
function
ILFunctioncontext
ILTransformContext