diff options
Diffstat (limited to 'lld/ELF/Target.h')
| -rw-r--r-- | lld/ELF/Target.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Target.h b/lld/ELF/Target.h index 88aa074074e..e9cbacb8dd7 100644 --- a/lld/ELF/Target.h +++ b/lld/ELF/Target.h @@ -221,7 +221,7 @@ inline void checkIntUInt(uint8_t *Loc, uint64_t V, int N, RelType Type) { // messages show a small negative value rather than an extremely large one if (V != (uint64_t)llvm::SignExtend64(V, N) && (V >> N) != 0) reportRangeError(Loc, Type, Twine((int64_t)V), llvm::minIntN(N), - llvm::maxIntN(N)); + llvm::maxUIntN(N)); } inline void checkAlignment(uint8_t *Loc, uint64_t V, int N, RelType Type) { |

