[llvm] r360478 - [ORC] Make a narrowing-cast explicit to silence a compiler warning.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Fri May 10 15:51:03 PDT 2019
Author: lhames
Date: Fri May 10 15:51:03 2019
New Revision: 360478
URL: http://llvm.org/viewvc/llvm-project?rev=360478&view=rev
Log:
[ORC] Make a narrowing-cast explicit to silence a compiler warning.
Modified:
llvm/trunk/lib/ExecutionEngine/JITLink/MachOAtomGraphBuilder.h
Modified: llvm/trunk/lib/ExecutionEngine/JITLink/MachOAtomGraphBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/JITLink/MachOAtomGraphBuilder.h?rev=360478&r1=360477&r2=360478&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/JITLink/MachOAtomGraphBuilder.h (original)
+++ llvm/trunk/lib/ExecutionEngine/JITLink/MachOAtomGraphBuilder.h Fri May 10 15:51:03 2019
@@ -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; }
More information about the llvm-commits
mailing list