Skip to content

Emit ldlen in pattern matching on arrays #56199

@alrz

Description

@alrz
public class C {
    public void M(int[] a) {
        var x = a.Length; // ldlen
        var y = a is {Length:0}; // callvirt System.Array::get_Length()
    }
}

Metadata

Metadata

Assignees

Labels

Area-CompilersBugCode Gen QualityRoom for improvement in the quality of the compiler's generated code

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions