[llvm] efc17c4 - [NFC] Fixing a gcc compiler warning.
Puyan Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 8 16:45:18 PDT 2020
Author: Puyan Lotfi
Date: 2020-09-08T19:44:33-04:00
New Revision: efc17c4bc668ada7d6274879bd5bccdb32436fa2
URL: https://github.com/llvm/llvm-project/commit/efc17c4bc668ada7d6274879bd5bccdb32436fa2
DIFF: https://github.com/llvm/llvm-project/commit/efc17c4bc668ada7d6274879bd5bccdb32436fa2.diff
LOG: [NFC] Fixing a gcc compiler warning.
warning: type qualifiers ignored on cast result type [-Wignored-qualifiers]
Differential Revision: https://reviews.llvm.org/D86952
Added:
Modified:
llvm/include/llvm/CodeGen/StableHashing.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/StableHashing.h b/llvm/include/llvm/CodeGen/StableHashing.h
index c6113aa93c80..caf27e152e78 100644
--- a/llvm/include/llvm/CodeGen/StableHashing.h
+++ b/llvm/include/llvm/CodeGen/StableHashing.h
@@ -40,7 +40,7 @@ inline void stable_hash_append(stable_hash &Hash, const char Value) {
inline void stable_hash_append(stable_hash &Hash, stable_hash Value) {
for (unsigned I = 0; I < 8; ++I) {
- stable_hash_append(Hash, (const char)Value);
+ stable_hash_append(Hash, static_cast<char>(Value));
Value >>= 8;
}
}
More information about the llvm-commits
mailing list