mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-06-29 04:50:47 -07:00
GetHashCode should not reference mutable fields (#5331)
This commit is contained in:
@ -5,7 +5,7 @@ namespace Spv.Generator
|
||||
{
|
||||
internal struct ConstantKey : IEquatable<ConstantKey>
|
||||
{
|
||||
private Instruction _constant;
|
||||
private readonly Instruction _constant;
|
||||
|
||||
public ConstantKey(Instruction constant)
|
||||
{
|
||||
|
@ -5,7 +5,7 @@ namespace Spv.Generator
|
||||
{
|
||||
internal class DeterministicStringKey : IEquatable<DeterministicStringKey>
|
||||
{
|
||||
private string _value;
|
||||
private readonly string _value;
|
||||
|
||||
public DeterministicStringKey(string value)
|
||||
{
|
||||
|
@ -8,7 +8,7 @@ namespace Spv.Generator
|
||||
{
|
||||
public OperandType Type => OperandType.String;
|
||||
|
||||
private string _value;
|
||||
private readonly string _value;
|
||||
|
||||
public LiteralString(string value)
|
||||
{
|
||||
|
@ -5,7 +5,7 @@ namespace Spv.Generator
|
||||
{
|
||||
internal struct TypeDeclarationKey : IEquatable<TypeDeclarationKey>
|
||||
{
|
||||
private Instruction _typeDeclaration;
|
||||
private readonly Instruction _typeDeclaration;
|
||||
|
||||
public TypeDeclarationKey(Instruction typeDeclaration)
|
||||
{
|
||||
|
Reference in New Issue
Block a user