Skip to content

Commit 84f4465

Browse files
[ExecutionEngine] Remove unnecessary casts (NFC) (llvm#153931)
getLoadAddressWithOffset() and getLoadAddress() already return uint64_t.
1 parent 0ede7ac commit 84f4465

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -654,11 +654,10 @@ bool RuntimeDyldELF::resolveLoongArch64ShortBranch(
654654
if (Loc == GlobalSymbolTable.end())
655655
return false;
656656
const auto &SymInfo = Loc->second;
657-
Address =
658-
uint64_t(Sections[SymInfo.getSectionID()].getLoadAddressWithOffset(
659-
SymInfo.getOffset()));
657+
Address = Sections[SymInfo.getSectionID()].getLoadAddressWithOffset(
658+
SymInfo.getOffset());
660659
} else {
661-
Address = uint64_t(Sections[Value.SectionID].getLoadAddress());
660+
Address = Sections[Value.SectionID].getLoadAddress();
662661
}
663662
uint64_t Offset = RelI->getOffset();
664663
uint64_t SourceAddress = Sections[SectionID].getLoadAddressWithOffset(Offset);

0 commit comments

Comments
 (0)