]> granicus.if.org Git - llvm/commitdiff
[ORC] Make a narrowing-cast explicit to silence a compiler warning.
authorLang Hames <lhames@gmail.com>
Fri, 10 May 2019 22:51:03 +0000 (22:51 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 10 May 2019 22:51:03 +0000 (22:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@360478 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/JITLink/MachOAtomGraphBuilder.h

index f5cd0ea185322704709406be26c455abcea9c86e..ce6a65b11ea32ea13fa6544fe2bdccd44603fd95 100644 (file)
@@ -75,7 +75,7 @@ protected:
 
     StringRef getContent() const {
       assert(ContentPtr && "getContent() called on zero-fill section");
-      return {ContentPtr, Size};
+      return {ContentPtr, static_cast<size_t>(Size)};
     }
 
     JITTargetAddress getAddress() const { return Address; }