[llvm] r205174 - ARM64: fix a couple of signed/unsigned comparison warnings.

Tim Northover tnorthover at apple.com
Mon Mar 31 03:21:36 PDT 2014


Author: tnorthover
Date: Mon Mar 31 05:21:36 2014
New Revision: 205174

URL: http://llvm.org/viewvc/llvm-project?rev=205174&view=rev
Log:
ARM64: fix a couple of signed/unsigned comparison warnings.

Modified:
    llvm/trunk/lib/Target/ARM64/ARM64FrameLowering.cpp
    llvm/trunk/lib/Target/ARM64/ARM64ISelDAGToDAG.cpp

Modified: llvm/trunk/lib/Target/ARM64/ARM64FrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM64/ARM64FrameLowering.cpp?rev=205174&r1=205173&r2=205174&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM64/ARM64FrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM64/ARM64FrameLowering.cpp Mon Mar 31 05:21:36 2014
@@ -422,7 +422,7 @@ void ARM64FrameLowering::emitEpilogue(Ma
       static_cast<const ARM64RegisterInfo *>(MF.getTarget().getRegisterInfo());
   DebugLoc DL = MBBI->getDebugLoc();
 
-  unsigned NumBytes = MFI->getStackSize();
+  int NumBytes = MFI->getStackSize();
   unsigned NumRestores = 0;
   // Move past the restores of the callee-saved registers.
   MachineBasicBlock::iterator LastPopI = MBBI;

Modified: llvm/trunk/lib/Target/ARM64/ARM64ISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM64/ARM64ISelDAGToDAG.cpp?rev=205174&r1=205173&r2=205174&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM64/ARM64ISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/ARM64/ARM64ISelDAGToDAG.cpp Mon Mar 31 05:21:36 2014
@@ -1308,8 +1308,7 @@ static bool isBitfieldExtractOpFromShr(S
   } else
     return false;
 
-  assert(Shl_imm >= 0 && Shl_imm < VT.getSizeInBits() &&
-         "bad amount in shift node!");
+  assert(Shl_imm < VT.getSizeInBits() && "bad amount in shift node!");
   uint64_t Srl_imm = 0;
   if (!isIntImmediate(N->getOperand(1), Srl_imm))
     return false;





More information about the llvm-commits mailing list