summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h b/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
index 1c9f7ef53a4..cc4149a80aa 100644
--- a/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
+++ b/llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h
@@ -381,7 +381,7 @@ public:
assert(!Parent.isZeroFill() && "Trying to get content for zero-fill atom");
assert(Size <= std::numeric_limits<size_t>::max() &&
"Content size too large");
- return {ContentPtr, Size};
+ return {ContentPtr, static_cast<size_t>(Size)};
}
void setContent(StringRef Content) {
assert(!Parent.isZeroFill() && "Calling setContent on zero-fill atom?");
OpenPOWER on IntegriCloud