Skip to content

Commit

Permalink
Workaround.
Browse files Browse the repository at this point in the history
  • Loading branch information
MoFtZ committed Apr 10, 2024
1 parent b64c62f commit 4f46ade
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Src/ILGPU/IR/BasicBlock.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,14 @@ readonly string InlineList.IFormatter<BasicBlock>.Format(BasicBlock item) =>
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public readonly bool Equals(BasicBlock? x, BasicBlock? y) =>
x == y;
x?.Id == y?.Id;

/// <summary>
/// Returns true if both blocks represent the same block.
/// </summary>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public readonly int GetHashCode(BasicBlock obj) => obj.GetHashCode();
public readonly int GetHashCode(BasicBlock obj) =>
obj.Id.GetHashCode();
}

/// <summary>
Expand Down

0 comments on commit 4f46ade

Please sign in to comment.