aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-10-26 15:20:07 -0700
committerGitHub <noreply@github.com>2025-10-26 15:20:07 -0700
commit6cb942cec44e66c9507876ca09ce203c7722417a (patch)
tree265bd29e2af2177e9be4c7bb7c1d89e532f07892 /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
parent50a37c022626816614a9d7da0a69bb77045e9e05 (diff)
downloadllvm-6cb942cec44e66c9507876ca09ce203c7722417a.zip
llvm-6cb942cec44e66c9507876ca09ce203c7722417a.tar.gz
llvm-6cb942cec44e66c9507876ca09ce203c7722417a.tar.bz2
[llvm] Remove argument_type in std::hash specializations (NFC) (#165167)
The argument_type and result_type type aliases in std::hash are deprecated in C++17 and removed in C++20. This patch aligns two specializations of ours with the C++ standard.
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
-rw-r--r--llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp b/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
index 93ae548..7bef3a8 100644
--- a/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
+++ b/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
@@ -86,10 +86,7 @@ template <> struct llvm::DenseMapInfo<VariableID> {
using VarLocInsertPt = PointerUnion<const Instruction *, const DbgRecord *>;
template <> struct std::hash<VarLocInsertPt> {
- using argument_type = VarLocInsertPt;
- using result_type = std::size_t;
-
- result_type operator()(const argument_type &Arg) const {
+ std::size_t operator()(const VarLocInsertPt &Arg) const {
return std::hash<void *>()(Arg.getOpaqueValue());
}
};