Skip to content

Commit 26fc07d

Browse files
committed
[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.
1 parent 67a8857 commit 26fc07d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

llvm/lib/ExecutionEngine/Orc/TargetProcess/UnwindInfoManager.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,11 @@ Error UnwindInfoManager::registerSections(
146146
std::lock_guard<std::mutex> Lock(M);
147147
for (auto &R : CodeRanges)
148148
UWSecs[R.Start.getValue()] = UnwindSections{
149-
DSOBase.getValue(), DWARFEHFrame.Start.getValue(), DWARFEHFrame.size(),
150-
CompactUnwind.Start.getValue(), CompactUnwind.size()};
149+
static_cast<uintptr_t>(DSOBase.getValue()),
150+
static_cast<uintptr_t>(DWARFEHFrame.Start.getValue()),
151+
static_cast<size_t>(DWARFEHFrame.size()),
152+
static_cast<uintptr_t>(CompactUnwind.Start.getValue()),
153+
static_cast<size_t>(CompactUnwind.size())};
151154
return Error::success();
152155
}
153156

0 commit comments

Comments
 (0)