(Hopefully) silence a warning.
authorOwen Anderson <resistor@mac.com>
Thu, 5 Mar 2009 08:23:20 +0000 (08:23 +0000)
committerOwen Anderson <resistor@mac.com>
Thu, 5 Mar 2009 08:23:20 +0000 (08:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66158 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/PreAllocSplitting.cpp

index 89e8cabd751f21c6fe89ca8e5e7afd4c86c1c047..581320a3961a4382c7d26fffe234579e3a17e63f 100644 (file)
@@ -1015,7 +1015,7 @@ MachineInstr* PreAllocSplitting::FoldRestore(unsigned vreg,
                                              MachineBasicBlock* MBB,
                                              int SS,
                                      SmallPtrSet<MachineInstr*, 4>& RefsInMBB) {
-  if ((int)RestoreFoldLimit != -1 && RestoreFoldLimit == NumRestoreFolds)
+  if ((int)RestoreFoldLimit != -1 && RestoreFoldLimit == (int)NumRestoreFolds)
     return 0;
                                        
   // Go top down if RefsInMBB is empty.