From 75b7a34cfdc1533579174510e3df9d51ab21857f Mon Sep 17 00:00:00 2001 From: Tim Northover Date: Mon, 4 Feb 2013 14:14:58 +0000 Subject: [PATCH] Give explicit suffix to integer constant over 32-bits. llvm-svn: 174324 --- lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp b/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp index 1c093693a88..a206fd17f5a 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