[llvm] 21d11c8 - Silence a signed/unsigned mismatch warning; NFC

Aaron Ballman via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 30 05:51:29 PDT 2021


Author: Aaron Ballman
Date: 2021-08-30T08:51:08-04:00
New Revision: 21d11c87a21b007da20cb3b55bfe6a4c33679ee3

URL: https://github.com/llvm/llvm-project/commit/21d11c87a21b007da20cb3b55bfe6a4c33679ee3
DIFF: https://github.com/llvm/llvm-project/commit/21d11c87a21b007da20cb3b55bfe6a4c33679ee3.diff

LOG: Silence a signed/unsigned mismatch warning; NFC

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/JITLink/x86_64.cpp b/llvm/lib/ExecutionEngine/JITLink/x86_64.cpp
index 4c107cbf41924..8d95b33b2e5b4 100644
--- a/llvm/lib/ExecutionEngine/JITLink/x86_64.cpp
+++ b/llvm/lib/ExecutionEngine/JITLink/x86_64.cpp
@@ -80,7 +80,7 @@ Error optimize_x86_64_GOTAndStubs(LinkGraph &G) {
           E.getKind() == x86_64::PCRel32GOTLoadREXRelaxable) {
 #ifndef NDEBUG
         bool REXPrefix = E.getKind() == x86_64::PCRel32GOTLoadREXRelaxable;
-        assert(E.getOffset() >= (REXPrefix ? 3 : 2) &&
+        assert(E.getOffset() >= (REXPrefix ? 3u : 2u) &&
                "GOT edge occurs too early in block");
 #endif
         auto *FixupData = reinterpret_cast<uint8_t *>(


        


More information about the llvm-commits mailing list