From: David Majnemer Date: Thu, 14 Aug 2014 06:44:51 +0000 (+0000) Subject: AArch64: Silence warning in AArch64FastISel X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=8c651f5c2686a9e330c06c0bf5ecd6edd9d00f3f;p=oota-llvm.git AArch64: Silence warning in AArch64FastISel GCC was emitting a signed vs unsigned comparison warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215620 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/AArch64/AArch64FastISel.cpp b/lib/Target/AArch64/AArch64FastISel.cpp index 5459c1ba4f7..adcb64d191c 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 != (1 << Val)) + if (NumBytes != (1U << Val)) break; Addr.setShift(Val);