Fix typeo
authorChris Lattner <sabre@nondot.org>
Wed, 21 Apr 2004 14:23:18 +0000 (14:23 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 21 Apr 2004 14:23:18 +0000 (14:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13089 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/Inliner.cpp

index 17e8001c5b579809f7792c6e8cc8f1ff2c0d6e4c..fdea373625968088c212ccfb0d9c6d60aa25a6b7 100644 (file)
@@ -144,7 +144,7 @@ bool Inliner::runOnSCC(const std::vector<CallGraphNode*> &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()) {