Skip to content

Commit d536f14

Browse files
kazutakahiratakrishna2803
authored andcommitted
[llvm-readobj] Remove an unnecessary cast (NFC) (llvm#151851)
Addr is already of const uint8_t *.
1 parent a610993 commit d536f14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-readobj/ELFDumper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2215,7 +2215,7 @@ template <typename ELFT> void ELFDumper<ELFT>::parseDynamicTable() {
22152215
const uint64_t FileSize = Obj.getBufSize();
22162216
const uint64_t DerivedSize =
22172217
(uint64_t)HashTable->nchain * DynSymRegion->EntSize;
2218-
const uint64_t Offset = (const uint8_t *)DynSymRegion->Addr - Obj.base();
2218+
const uint64_t Offset = DynSymRegion->Addr - Obj.base();
22192219
if (DerivedSize > FileSize - Offset)
22202220
reportUniqueWarning(
22212221
"the size (0x" + Twine::utohexstr(DerivedSize) +

0 commit comments

Comments
 (0)