Fix typeo

llvm-svn: 13089
This commit is contained in:
Chris Lattner 2004-04-21 14:23:18 +00:00
parent 15eb3c1f39
commit ade6ddc694

View 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()) {