aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/PreAllocSplitting.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-03-05 08:23:20 +0000
committerOwen Anderson <resistor@mac.com>2009-03-05 08:23:20 +0000
commita2bfb54e4dd671c5f9ef32cd91b7133d424d9ee4 (patch)
tree092f645b5c77c4b93a06a3eb8b7ed59b00f819fd /lib/CodeGen/PreAllocSplitting.cpp
parent731c6abc469863ca6b8259319991bdc0455fc8b0 (diff)
(Hopefully) silence a warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66158 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PreAllocSplitting.cpp')
-rw-r--r--lib/CodeGen/PreAllocSplitting.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/PreAllocSplitting.cpp b/lib/CodeGen/PreAllocSplitting.cpp
index 89e8cabd75..581320a396 100644
--- a/lib/CodeGen/PreAllocSplitting.cpp
+++ b/lib/CodeGen/PreAllocSplitting.cpp
@@ -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.