[PATCH] D100093: [JITLink] Minor fix to avoid Windows compiler warning for static-cast

David Stuttard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 8 02:42:00 PDT 2021


dstuttard created this revision.
Herald added a subscriber: hiraditya.
dstuttard requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Change-Id: Id0c1d5535b53e2aebe314151c0efa585e763f3f6


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D100093

Files:
  llvm/lib/ExecutionEngine/JITLink/x86_64.cpp


Index: llvm/lib/ExecutionEngine/JITLink/x86_64.cpp
===================================================================
--- llvm/lib/ExecutionEngine/JITLink/x86_64.cpp
+++ llvm/lib/ExecutionEngine/JITLink/x86_64.cpp
@@ -57,7 +57,7 @@
                                     0x00, 0x00, 0x00, 0x00};
 
 const char PointerJumpStubContent[6] = {
-    static_cast<char>(0xFF), 0x25, 0x00, 0x00, 0x00, 0x00};
+    static_cast<char>(0xFFu), 0x25, 0x00, 0x00, 0x00, 0x00};
 
 } // end namespace x86_64
 } // end namespace jitlink


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100093.336041.patch
Type: text/x-patch
Size: 519 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210408/b7f3b28b/attachment.bin>


More information about the llvm-commits mailing list