Fix signed/unsigned comparison warning
authorChris Lattner <sabre@nondot.org>
Sun, 28 Apr 2002 04:49:43 +0000 (04:49 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 28 Apr 2002 04:49:43 +0000 (04:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2350 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/ComputeClosure.cpp

index 501fd0c3d912c1e7457ccd33c28878ac79f89f5e..f4345fae8018565489016e1c3a55e3f51d657afd 100644 (file)
@@ -109,7 +109,7 @@ void FunctionDSGraph::computeClosure(const DataStructure &DS) {
     GlobalDSNode *FGDN = cast<GlobalDSNode>(CN->getArgValues(0)[0].Node);
     Function *F = cast<Function>(FGDN->getGlobal());
 
-    if (NumInlines++ == InlineLimit) {      // CUTE hack huh?
+    if ((int)NumInlines++ == InlineLimit) {      // CUTE hack huh?
       cerr << "Infinite (?) recursion halted\n";
       cerr << "Not inlining: " << F->getName() << "\n";
       CN->dump();