From ff6a5905bb0cef35bdf5477044dae20c2ee49985 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Sat, 20 Apr 2019 17:37:09 +0000 Subject: [PATCH] [JITLink] Silence a narrowing conversion warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@358821 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ExecutionEngine/JITLink/JITLink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ExecutionEngine/JITLink/JITLink.h b/include/llvm/ExecutionEngine/JITLink/JITLink.h index 1c9f7ef53a4..cc4149a80aa 100644 --- a/include/llvm/ExecutionEngine/JITLink/JITLink.h +++ b/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::max() && "Content size too large"); - return {ContentPtr, Size}; + return {ContentPtr, static_cast(Size)}; } void setContent(StringRef Content) { assert(!Parent.isZeroFill() && "Calling setContent on zero-fill atom?"); -- 2.11.0