[ORC] Add explicit narrowing casts to fix build errors.

This should fix the compile errors seen in
https://lab.llvm.org/buildbot/#/builders/154/builds/10779.
This commit is contained in:
Lang Hames
2025-01-23 23:39:12 +00:00
parent 67a8857989
commit 26fc07d5d8

View File

@@ -146,8 +146,11 @@ Error UnwindInfoManager::registerSections(
std::lock_guard<std::mutex> Lock(M);
for (auto &R : CodeRanges)
UWSecs[R.Start.getValue()] = UnwindSections{
DSOBase.getValue(), DWARFEHFrame.Start.getValue(), DWARFEHFrame.size(),
CompactUnwind.Start.getValue(), CompactUnwind.size()};
static_cast<uintptr_t>(DSOBase.getValue()),
static_cast<uintptr_t>(DWARFEHFrame.Start.getValue()),
static_cast<size_t>(DWARFEHFrame.size()),
static_cast<uintptr_t>(CompactUnwind.Start.getValue()),
static_cast<size_t>(CompactUnwind.size())};
return Error::success();
}