[llvm] 3a52a63 - [ORC] Add more explicit narrowing casts.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 11 22:00:30 PDT 2021
Author: Lang Hames
Date: 2021-10-11T22:00:06-07:00
New Revision: 3a52a639b18e91831cec1b1983d08e621d22d10a
URL: https://github.com/llvm/llvm-project/commit/3a52a639b18e91831cec1b1983d08e621d22d10a
DIFF: https://github.com/llvm/llvm-project/commit/3a52a639b18e91831cec1b1983d08e621d22d10a.diff
LOG: [ORC] Add more explicit narrowing casts.
This should fix the buildbot failure at
https://lab.llvm.org/buildbot/#/builders/187/builds/2140
Added:
Modified:
llvm/lib/ExecutionEngine/Orc/EPCIndirectionUtils.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ExecutionEngine/Orc/EPCIndirectionUtils.cpp b/llvm/lib/ExecutionEngine/Orc/EPCIndirectionUtils.cpp
index 948d1d96aeff7..a08f29c29f2f0 100644
--- a/llvm/lib/ExecutionEngine/Orc/EPCIndirectionUtils.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/EPCIndirectionUtils.cpp
@@ -359,7 +359,7 @@ EPCIndirectionUtils::getIndirectStubs(unsigned NumStubs) {
auto Alloc = SimpleSegmentAlloc::Create(
EPC.getMemMgr(), nullptr,
{{StubProt, {static_cast<size_t>(StubBytes), Align(PageSize)}},
- {PtrProt, {PtrBytes, Align(PageSize)}}});
+ {PtrProt, {static_cast<size_t>(PtrBytes), Align(PageSize)}}});
if (!Alloc)
return Alloc.takeError();
More information about the llvm-commits
mailing list