Skip to content

Commit

Permalink
Implement equality on the parent CORINFO_SWIFT_LOWERING type
Browse files Browse the repository at this point in the history
  • Loading branch information
jkoritzinsky committed Jul 16, 2024
1 parent c40f090 commit 8f6bcac
Showing 1 changed file with 41 additions and 40 deletions.
81 changes: 41 additions & 40 deletions src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1509,52 +1509,12 @@ public struct CORINFO_SWIFT_LOWERING
private struct SwiftLoweredTypes
{
public CorInfoType type;

public override bool Equals(object other)
{
if (other is SwiftLoweredTypes otherType)
{
ReadOnlySpan<CorInfoType> self = this;
return self.SequenceEqual(otherType);
}
return false;
}

public override int GetHashCode()
{
var code = new HashCode();
foreach (var item in this)
{
code.Add(item);
}
return code.ToHashCode();
}
}

[InlineArray(4)]
private struct LoweredOffsets
{
public uint offset;

public override bool Equals(object other)
{
if (other is LoweredOffsets otherType)
{
ReadOnlySpan<uint> self = this;
return self.SequenceEqual(otherType);
}
return false;
}

public override int GetHashCode()
{
var code = new HashCode();
foreach (var item in this)
{
code.Add(item);
}
return code.ToHashCode();
}
}

private SwiftLoweredTypes _loweredElements;
Expand All @@ -1569,6 +1529,47 @@ public override int GetHashCode()

public nint numLoweredElements;

public override bool Equals(object obj)
{
if (obj is not CORINFO_SWIFT_LOWERING other)
{
return false;
}

if (byReference != other.byReference)
{
return false;
}

// If both are by-ref, the rest of the bits mean nothing.
if (byReference)
{
return true;
}

return LoweredElements.Slice(0, numLoweredElements).SequenceEqual(other.LoweredElements).Slice(0, other.numLoweredElements)

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_NativeAOT)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug NativeAOT)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Release NativeAOT)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release NativeAOT)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 Release NativeAOT)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release NativeAOT_Libraries)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 Release NativeAOT_Libraries)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Release NativeAOT)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 checked CLR_Tools_Tests)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_NativeAOT)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-riscv64 checked CoreCLR)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-armel checked CoreCLR_NonPortable)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug CoreCLR_Libraries)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm checked CoreCLR_ReleaseLibraries)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm checked CoreCLR_ReleaseLibraries)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug AllSubsets_CoreCLR)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm64 Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug AllSubsets_CoreCLR)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug CoreCLR_Libraries)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm64 checked CoreCLR_ReleaseLibraries)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 Debug AllSubsets_CoreCLR)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build linux-x64 release Runtime_Release)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug Libraries_CheckedCoreCLR)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug CoreCLR_Libraries)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build freebsd-x64 Debug CoreCLR)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Libraries_CheckedCoreCLR)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug Libraries_CheckedCoreCLR)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build osx-x64 release Runtime_Release)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 checked CoreCLR_ReleaseLibraries)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug Libraries_CheckedCoreCLR)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1550 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1550

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1550,45): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'
&& Offsets.Slice(0, numLoweredElements).SequenceEqual(other.Offsets).Slice(0, other.numLoweredElements);

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build ios-arm64 Release AllSubsets_NativeAOT)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug NativeAOT)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Release NativeAOT)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release NativeAOT)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 Release NativeAOT)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Release NativeAOT_Libraries)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 Release NativeAOT_Libraries)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Release NativeAOT)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 checked CLR_Tools_Tests)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build tvos-arm64 Release AllSubsets_NativeAOT)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-riscv64 checked CoreCLR)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-armel checked CoreCLR_NonPortable)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug CoreCLR_Libraries)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm checked CoreCLR_ReleaseLibraries)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm checked CoreCLR_ReleaseLibraries)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug AllSubsets_CoreCLR)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm64 Debug AllSubsets_CoreCLR_ReleaseRuntimeLibs)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug AllSubsets_CoreCLR)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug CoreCLR_Libraries)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm64 checked CoreCLR_ReleaseLibraries)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-arm64 Debug AllSubsets_CoreCLR)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build linux-x64 release Runtime_Release)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug Libraries_CheckedCoreCLR)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug CoreCLR_Libraries)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build freebsd-x64 Debug CoreCLR)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Libraries_CheckedCoreCLR)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug Libraries_CheckedCoreCLR)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests (Build osx-x64 release Runtime_Release)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 checked CoreCLR_ReleaseLibraries)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug Libraries_CheckedCoreCLR)

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / dotnet-linker-tests

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'

Check failure on line 1551 in src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs

View check run for this annotation

Azure Pipelines / runtime

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs#L1551

src/coreclr/tools/Common/JitInterface/CorInfoTypes.cs(1551,37): error CS1503: (NETCORE_ENGINEERING_TELEMETRY=Build) Argument 2: cannot convert from 'nint' to 'int'
}

public override int GetHashCode()
{
HashCode code = new HashCode();
code.Add(byReference);

if (byReference)
{
return code.ToHashCode();
}

for (int i = 0; i < numLoweredElements; i++)
{
code.Add(LoweredElements[i]);
code.Add(Offsets[i]);
}

return code.ToHashCode();
}

// Override for a better unit test experience
public override string ToString()
{
Expand Down

0 comments on commit 8f6bcac

Please sign in to comment.