[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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user