From: Aaron Ballman Date: Mon, 30 Aug 2021 12:51:08 +0000 (-0400) Subject: Silence a signed/unsigned mismatch warning; NFC X-Git-Tag: upstream/15.0.7~32730 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21d11c87a21b007da20cb3b55bfe6a4c33679ee3;p=platform%2Fupstream%2Fllvm.git Silence a signed/unsigned mismatch warning; NFC --- diff --git a/llvm/lib/ExecutionEngine/JITLink/x86_64.cpp b/llvm/lib/ExecutionEngine/JITLink/x86_64.cpp index 4c107cb..8d95b33 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(