diff --git a/lib/Target/AArch64/AArch64FastISel.cpp b/lib/Target/AArch64/AArch64FastISel.cpp index adcb64d191c..58a4fd16b61 100644 --- a/lib/Target/AArch64/AArch64FastISel.cpp +++ b/lib/Target/AArch64/AArch64FastISel.cpp @@ -487,7 +487,7 @@ bool AArch64FastISel::ComputeAddress(const Value *Obj, Address &Addr, Type *Ty) NumBytes = 0; } - if (NumBytes != (1U << Val)) + if (NumBytes != (1ULL << Val)) break; Addr.setShift(Val);