diff --git a/lib/Transforms/IPO/Inliner.cpp b/lib/Transforms/IPO/Inliner.cpp index 17e8001c5b5..fdea3736259 100644 --- a/lib/Transforms/IPO/Inliner.cpp +++ b/lib/Transforms/IPO/Inliner.cpp @@ -144,7 +144,7 @@ bool Inliner::runOnSCC(const std::vector &SCC) { bool Inliner::doFinalization(CallGraph &CG) { bool Changed = false; for (CallGraph::iterator I = CG.begin(), E = CG.end(); I != E; ) { - CallGraphNode *CGN = (++I)->second; + CallGraphNode *CGN = (I++)->second; Function *F = CGN ? CGN->getFunction() : 0; if (F && (F->hasLinkOnceLinkage() || F->hasInternalLinkage()) && F->use_empty()) {