diff options
author | Zachary Turner <zturner@google.com> | 2016-12-16 23:12:58 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-12-16 23:12:58 +0000 |
commit | b5381eef6f9e7dcd1246af8d62aec9a4e37de36b (patch) | |
tree | efe4e793cdb50a930d621eb8df9628f72367df9a | |
parent | 59343a9429f67617e6a601767eda98dfc41e46bf (diff) | |
download | bcm5719-llvm-b5381eef6f9e7dcd1246af8d62aec9a4e37de36b.tar.gz bcm5719-llvm-b5381eef6f9e7dcd1246af8d62aec9a4e37de36b.zip |
Fix compiler warning.
Differential Revision: https://reviews.llvm.org/D27860
llvm-svn: 290002
-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(); } |