aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/AArch64/MCTargetDesc
diff options
context:
space:
mode:
authorTim Northover <Tim.Northover@arm.com>2013-02-04 14:14:58 +0000
committerTim Northover <Tim.Northover@arm.com>2013-02-04 14:14:58 +0000
commit17174e59004d4df12f9037f0dc99ae530d71eab9 (patch)
tree26409430de07e54307769b1646ab5947460790df /lib/Target/AArch64/MCTargetDesc
parent4c40840d385835be0bc478cc0b957ff8f2beba95 (diff)
downloadexternal_llvm-17174e59004d4df12f9037f0dc99ae530d71eab9.zip
external_llvm-17174e59004d4df12f9037f0dc99ae530d71eab9.tar.gz
external_llvm-17174e59004d4df12f9037f0dc99ae530d71eab9.tar.bz2
Give explicit suffix to integer constant over 32-bits.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/AArch64/MCTargetDesc')
-rw-r--r--lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp b/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
index 1c09369..a206fd1 100644
--- a/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
+++ b/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
@@ -552,7 +552,7 @@ static uint64_t adjustFixupValue(unsigned Kind, uint64_t Value) {
// 2^32.
assert((int64_t)Value >= -(1LL << 32) &&
(int64_t)Value < (1LL << 32) && "Out of range ADRP fixup");
- return ADRImmBits((Value & 0x1fffff000) >> 12);
+ return ADRImmBits((Value & 0x1fffff000ULL) >> 12);
case AArch64::fixup_a64_ld64_gottprel_lo12_nc:
// R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC: Set an LD offset field to bits FF8