[llvm] 84f4465 - [ExecutionEngine] Remove unnecessary casts (NFC) (#153931)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 16 06:47:29 PDT 2025
Author: Kazu Hirata
Date: 2025-08-16T06:47:25-07:00
New Revision: 84f4465135313f649da705e97ff4b6a8029b103e
URL: https://github.com/llvm/llvm-project/commit/84f4465135313f649da705e97ff4b6a8029b103e
DIFF: https://github.com/llvm/llvm-project/commit/84f4465135313f649da705e97ff4b6a8029b103e.diff
LOG: [ExecutionEngine] Remove unnecessary casts (NFC) (#153931)
getLoadAddressWithOffset() and getLoadAddress() already return
uint64_t.
Added:
Modified:
llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
index 08d6c78bd1eb1..d6268037dea86 100644
--- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
+++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
@@ -654,11 +654,10 @@ bool RuntimeDyldELF::resolveLoongArch64ShortBranch(
if (Loc == GlobalSymbolTable.end())
return false;
const auto &SymInfo = Loc->second;
- Address =
- uint64_t(Sections[SymInfo.getSectionID()].getLoadAddressWithOffset(
- SymInfo.getOffset()));
+ Address = Sections[SymInfo.getSectionID()].getLoadAddressWithOffset(
+ SymInfo.getOffset());
} else {
- Address = uint64_t(Sections[Value.SectionID].getLoadAddress());
+ Address = Sections[Value.SectionID].getLoadAddress();
}
uint64_t Offset = RelI->getOffset();
uint64_t SourceAddress = Sections[SectionID].getLoadAddressWithOffset(Offset);
More information about the llvm-commits
mailing list