diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index 779c98ee4441e..73e79c08a56ca 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -135,7 +135,7 @@ std::string llvm::computeLTOCacheKey( Hasher.update(Data); }; auto AddUint8 = [&](const uint8_t I) { - Hasher.update(ArrayRef((const uint8_t *)&I, 1)); + Hasher.update(ArrayRef(&I, 1)); }; AddString(Conf.CPU); // FIXME: Hash more of Options. For now all clients initialize Options from