[LTO] Remove an unnecessary cast (NFC) (#146275)

&I is already of const uint8_t *.
This commit is contained in:
Kazu Hirata
2025-06-29 19:19:38 -07:00
committed by GitHub
parent 678ccd5e53
commit 72c0fc2305

View File

@@ -135,7 +135,7 @@ std::string llvm::computeLTOCacheKey(
Hasher.update(Data);
};
auto AddUint8 = [&](const uint8_t I) {
Hasher.update(ArrayRef<uint8_t>((const uint8_t *)&I, 1));
Hasher.update(ArrayRef<uint8_t>(&I, 1));
};
AddString(Conf.CPU);
// FIXME: Hash more of Options. For now all clients initialize Options from