[llvm] llvm/include/llvm/DebugInfo/CodeView/TypeHashing.h: 2 * pointless copy (#94385) (PR #94410)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 4 16:11:14 PDT 2024
https://github.com/akshaykumars614 created https://github.com/llvm/llvm-project/pull/94410
modified parameters for code quality
>From fd8f9c62b6da60de2f70243c4581d2f335dd1a58 Mon Sep 17 00:00:00 2001
From: akshaykumars614 <akshaykumars614 at gmail.com>
Date: Tue, 4 Jun 2024 19:06:40 -0400
Subject: [PATCH] llvm/include/llvm/DebugInfo/CodeView/TypeHashing.h: 2 *
pointless copy (#94385)
modified parameters for code quality
---
llvm/include/llvm/DebugInfo/CodeView/TypeHashing.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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<codeview::GloballyHashedType> {
return *reinterpret_cast<const unsigned *>(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;
}
};
More information about the llvm-commits
mailing list