[llvm] r206393 - ARM64: silence sign-comparison warning.

Tim Northover tnorthover at apple.com
Wed Apr 16 08:28:06 PDT 2014


Author: tnorthover
Date: Wed Apr 16 10:28:06 2014
New Revision: 206393

URL: http://llvm.org/viewvc/llvm-project?rev=206393&view=rev
Log:
ARM64: silence sign-comparison warning.

Modified:
    llvm/trunk/lib/Target/ARM64/ARM64InstrInfo.td

Modified: llvm/trunk/lib/Target/ARM64/ARM64InstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM64/ARM64InstrInfo.td?rev=206393&r1=206392&r2=206393&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM64/ARM64InstrInfo.td (original)
+++ llvm/trunk/lib/Target/ARM64/ARM64InstrInfo.td Wed Apr 16 10:28:06 2014
@@ -399,7 +399,7 @@ def MOVi64imm
 // eventual expansion code fewer bits to worry about getting right. Marshalling
 // the types is a little tricky though:
 def i64imm_32bit : ImmLeaf<i64, [{
-  return (Imm & 0xffffffffULL) == Imm;
+  return (Imm & 0xffffffffULL) == static_cast<uint64_t>(Imm);
 }]>;
 
 def trunc_imm : SDNodeXForm<imm, [{





More information about the llvm-commits mailing list