[llvm] 86ab5dc - [AsmPrinter] Remove an unnecessary cast (NFC) (#152085)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 5 07:39:01 PDT 2025
Author: Kazu Hirata
Date: 2025-08-05T07:38:58-07:00
New Revision: 86ab5dc5833b39be97c11e7c509a90fed92525cd
URL: https://github.com/llvm/llvm-project/commit/86ab5dc5833b39be97c11e7c509a90fed92525cd
DIFF: https://github.com/llvm/llvm-project/commit/86ab5dc5833b39be97c11e7c509a90fed92525cd.diff
LOG: [AsmPrinter] Remove an unnecessary cast (NFC) (#152085)
getValue() already returns uint64_t.
Added:
Modified:
llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp b/llvm/lib/CodeGen/AsmPrinter/DIEHash.cpp
index 08ed78eb20a16..a7491a2d272fa 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.
More information about the llvm-commits
mailing list