forked from OSchip/llvm-project
[ORC] Add explicit cast to fix a narrowing conversion error.
This commit is contained in:
parent
669b070936
commit
121302ac62
|
@ -378,7 +378,7 @@ TPCIndirectionUtils::getIndirectStubs(unsigned NumStubs) {
|
||||||
sys::Memory::MF_WRITE);
|
sys::Memory::MF_WRITE);
|
||||||
|
|
||||||
auto Alloc = TPC.getMemMgr().allocate(
|
auto Alloc = TPC.getMemMgr().allocate(
|
||||||
{{StubPagePermissions, {PageSize, StubBytes, 0}},
|
{{StubPagePermissions, {PageSize, static_cast<size_t>(StubBytes), 0}},
|
||||||
{PointerPagePermissions, {PageSize, 0, PointerBytes}}});
|
{PointerPagePermissions, {PageSize, 0, PointerBytes}}});
|
||||||
|
|
||||||
if (!Alloc)
|
if (!Alloc)
|
||||||
|
|
Loading…
Reference in New Issue