aboutsummaryrefslogtreecommitdiff
path: root/llvm
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2025-08-05 07:38:58 -0700
committerGitHub <noreply@github.com>2025-08-05 07:38:58 -0700
commit86ab5dc5833b39be97c11e7c509a90fed92525cd (patch)
treeba845e507a1412217c66c5a559c31923efc24219 /llvm
parent12ef487ea7cfaefdca5ca0b58e89ea0496ecc154 (diff)
downloadllvm-86ab5dc5833b39be97c11e7c509a90fed92525cd.zip
llvm-86ab5dc5833b39be97c11e7c509a90fed92525cd.tar.gz
llvm-86ab5dc5833b39be97c11e7c509a90fed92525cd.tar.bz2
[AsmPrinter] Remove an unnecessary cast (NFC) (#152085)
getValue() already returns uint64_t.
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp b/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp
index 08ed78e..a7491a2 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp
@@ -230,7 +230,7 @@ void DIEHash::hashBlockData(const DIE::const_value_range &Values) {
"Base types referenced from DW_OP_convert should have a name");
hashNestedType(C, Name);
} else
- Hash.update((uint64_t)V.getDIEInteger().getValue());
+ Hash.update(V.getDIEInteger().getValue());
}
// Hash the contents of a loclistptr class.