fix warning
authorTony Linthicum <tlinth@codeaurora.org>
Mon, 12 Dec 2011 21:52:59 +0000 (21:52 +0000)
committerTony Linthicum <tlinth@codeaurora.org>
Mon, 12 Dec 2011 21:52:59 +0000 (21:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146420 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Hexagon/HexagonFrameLowering.cpp

index 5a4e1d2d41c3e3766a3ac8ac082a93f776127626..78e0b1ced386ac791c572a3e893dd8480ac3e153 100644 (file)
@@ -142,7 +142,7 @@ void HexagonFrameLowering::emitPrologue(MachineFunction &MF) const {
   if (hasFP(MF)) {
     // Check for overflow.
     // Hexagon_TODO: Ugh! hardcoding. Is there an API that can be used?
   if (hasFP(MF)) {
     // Check for overflow.
     // Hexagon_TODO: Ugh! hardcoding. Is there an API that can be used?
-    const unsigned int ALLOCFRAME_MAX = 16384;
+    const int ALLOCFRAME_MAX = 16384;
     const TargetInstrInfo &TII = *MF.getTarget().getInstrInfo();
 
     if (NumBytes >= ALLOCFRAME_MAX) {
     const TargetInstrInfo &TII = *MF.getTarget().getInstrInfo();
 
     if (NumBytes >= ALLOCFRAME_MAX) {