diff options
| author | Rui Ueyama <ruiu@google.com> | 2013-05-14 23:51:50 +0000 |
|---|---|---|
| committer | Rui Ueyama <ruiu@google.com> | 2013-05-14 23:51:50 +0000 |
| commit | 5f689e24de789cf59422ae8e14e060c0e940b87f (patch) | |
| tree | 39793c319319eba705325acb41b8e725a9d3de5c /lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp | |
| parent | 0925b24d9af3ec37897b850d60c4c9fe17a9fbc0 (diff) | |
| download | bcm5719-llvm-5f689e24de789cf59422ae8e14e060c0e940b87f.tar.gz bcm5719-llvm-5f689e24de789cf59422ae8e14e060c0e940b87f.zip | |
[lld] Fix compiler warning that shift count is too big on P64.
llvm-svn: 181852
Diffstat (limited to 'lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp')
| -rw-r--r-- | lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp index 78a9e4133a1..3c5bff79b07 100644 --- a/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp +++ b/lld/lib/ReaderWriter/ELF/Hexagon/HexagonRelocationHandler.cpp @@ -62,7 +62,7 @@ int reloc32(uint8_t *location, uint64_t P, uint64_t S, uint64_t A) { int reloc32_6_X(uint8_t *location, uint64_t P, uint64_t S, uint64_t A) { int64_t result = ((S + A) >> 6); - int64_t range = 1L << 32; + int64_t range = ((int64_t)1) << 32; if (result > range) return 1; result = lld::scatterBits<int32_t>(result, 0xfff3fff); |

