GetNull() public static method

Gets the null constant Operand.
public static GetNull ( TypeSystem typeSystem ) : Operand
typeSystem Mosa.Compiler.MosaTypeSystem.TypeSystem
return Operand
        private static void PatchBeginInvoke(BaseMethodCompiler methodCompiler)
        {
            var nullOperand = Operand.GetNull(methodCompiler.TypeSystem);

            var context = new Context(CreateMethodStructure(methodCompiler, true));

            context.AppendInstruction(IRInstruction.Return, null, nullOperand);
            context.AddBranchTarget(methodCompiler.BasicBlocks.EpilogueBlock);
        }