diff --git a/llvm/lib/Analysis/DataStructure/ComputeClosure.cpp b/llvm/lib/Analysis/DataStructure/ComputeClosure.cpp index 501fd0c3d912..f4345fae8018 100644 --- a/llvm/lib/Analysis/DataStructure/ComputeClosure.cpp +++ b/llvm/lib/Analysis/DataStructure/ComputeClosure.cpp @@ -109,7 +109,7 @@ void FunctionDSGraph::computeClosure(const DataStructure &DS) { GlobalDSNode *FGDN = cast(CN->getArgValues(0)[0].Node); Function *F = cast(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();