[llvm] r215620 - AArch64: Silence warning in AArch64FastISel
David Majnemer
david.majnemer at gmail.com
Wed Aug 13 23:44:51 PDT 2014
Author: majnemer
Date: Thu Aug 14 01:44:51 2014
New Revision: 215620
URL: http://llvm.org/viewvc/llvm-project?rev=215620&view=rev
Log:
AArch64: Silence warning in AArch64FastISel
GCC was emitting a signed vs unsigned comparison warning.
Modified:
llvm/trunk/lib/Target/AArch64/AArch64FastISel.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64FastISel.cpp?rev=215620&r1=215619&r2=215620&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64FastISel.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64FastISel.cpp Thu Aug 14 01:44:51 2014
@@ -487,7 +487,7 @@ bool AArch64FastISel::ComputeAddress(con
NumBytes = 0;
}
- if (NumBytes != (1 << Val))
+ if (NumBytes != (1U << Val))
break;
Addr.setShift(Val);
More information about the llvm-commits
mailing list