diff --git a/llvm/include/llvm/DebugInfo/CodeView/TypeHashing.h b/llvm/include/llvm/DebugInfo/CodeView/TypeHashing.h index e92ec4855b252..453b38e0c11e3 100644 --- a/llvm/include/llvm/DebugInfo/CodeView/TypeHashing.h +++ b/llvm/include/llvm/DebugInfo/CodeView/TypeHashing.h @@ -212,8 +212,8 @@ template <> struct DenseMapInfo { return *reinterpret_cast(Val.Hash.data()); } - static bool isEqual(codeview::GloballyHashedType LHS, - codeview::GloballyHashedType RHS) { + static bool isEqual(const codeview::GloballyHashedType &LHS, + const codeview::GloballyHashedType &RHS) { return LHS == RHS; } };