From b5381eef6f9e7dcd1246af8d62aec9a4e37de36b Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 16 Dec 2016 23:12:58 +0000 Subject: [PATCH] Fix compiler warning. Differential Revision: https://reviews.llvm.org/D27860 llvm-svn: 290002 --- lld/ELF/Relocations.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/ELF/Relocations.h b/lld/ELF/Relocations.h index c60a9e0..b5825bd 100644 --- a/lld/ELF/Relocations.h +++ b/lld/ELF/Relocations.h @@ -98,7 +98,7 @@ struct RelExprMaskBuilder { // RelExpr's as a constant bit mask and test for membership with a // couple cheap bitwise operations. template bool isRelExprOneOf(RelExpr Expr) { - assert(0 <= Expr && Expr < 64 && "RelExpr is too large for 64-bit mask!"); + assert(0 <= Expr && (int)Expr < 64 && "RelExpr is too large for 64-bit mask!"); return (uint64_t(1) << Expr) & RelExprMaskBuilder::build(); } -- 2.7.4