Skip to content

Commit feed4ef

Browse files
kazutakahiratarlavaee
authored andcommitted
[LTO] Remove an unnecessary cast (NFC) (llvm#146275)
&I is already of const uint8_t *.
1 parent 0268792 commit feed4ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/LTO/LTO.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ std::string llvm::computeLTOCacheKey(
135135
Hasher.update(Data);
136136
};
137137
auto AddUint8 = [&](const uint8_t I) {
138-
Hasher.update(ArrayRef<uint8_t>((const uint8_t *)&I, 1));
138+
Hasher.update(ArrayRef<uint8_t>(&I, 1));
139139
};
140140
AddString(Conf.CPU);
141141
// FIXME: Hash more of Options. For now all clients initialize Options from

0 commit comments

Comments
 (0)