Skip to content

Commit 3a52a63

Browse files
committed
[ORC] Add more explicit narrowing casts.
This should fix the buildbot failure at https://lab.llvm.org/buildbot/#/builders/187/builds/2140
1 parent db832d4 commit 3a52a63

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
@@ -359,7 +359,7 @@ EPCIndirectionUtils::getIndirectStubs(unsigned NumStubs) {
359359
auto Alloc = SimpleSegmentAlloc::Create(
360360
EPC.getMemMgr(), nullptr,
361361
{{StubProt, {static_cast<size_t>(StubBytes), Align(PageSize)}},
362-
{PtrProt, {PtrBytes, Align(PageSize)}}});
362+
{PtrProt, {static_cast<size_t>(PtrBytes), Align(PageSize)}}});
363363

364364
if (!Alloc)
365365
return Alloc.takeError();

0 commit comments

Comments
 (0)