diff options
| -rw-r--r-- | lld/ELF/Relocations.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Relocations.h b/lld/ELF/Relocations.h index c60a9e0df7e..b5825bdd5e5 100644 --- a/lld/ELF/Relocations.h +++ b/lld/ELF/Relocations.h @@ -98,7 +98,7 @@ struct RelExprMaskBuilder<Head, Tail...> { // RelExpr's as a constant bit mask and test for membership with a // couple cheap bitwise operations. template <RelExpr... Exprs> 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<Exprs...>::build(); } |

