Skip to content

Commit 39941a2

Browse files
[ExecutionEngine] Remove an unnecessary cast (NFC) (#152836)
getValue() already returns uint64_t.
1 parent e98b8cb commit 39941a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/ExecutionEngine/Orc/EPCIndirectionUtils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Error EPCIndirectStubsManager::createStubs(const StubInitsMap &StubInits) {
169169
std::vector<tpctypes::UInt64Write> PtrUpdates;
170170
for (auto &SI : StubInits)
171171
PtrUpdates.push_back({(*AvailableStubInfos)[ASIdx++].PointerAddress,
172-
static_cast<uint64_t>(SI.second.first.getValue())});
172+
SI.second.first.getValue()});
173173
return MemAccess.writeUInt64s(PtrUpdates);
174174
}
175175
default:

0 commit comments

Comments
 (0)