[ORC] Add explicit cast to fix a narrowing conversion error.

This commit is contained in:
Lang Hames 2020-07-16 15:26:56 -07:00
parent 669b070936
commit 121302ac62
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ TPCIndirectionUtils::getIndirectStubs(unsigned NumStubs) {
sys::Memory::MF_WRITE);
auto Alloc = TPC.getMemMgr().allocate(
{{StubPagePermissions, {PageSize, StubBytes, 0}},
{{StubPagePermissions, {PageSize, static_cast<size_t>(StubBytes), 0}},
{PointerPagePermissions, {PageSize, 0, PointerBytes}}});
if (!Alloc)