Simplify loop. No functionality change.

llvm-svn: 116861
This commit is contained in:
Ted Kremenek 2010-10-19 21:30:11 +00:00
parent f9c02e15c4
commit b865f7e025
1 changed files with 1 additions and 4 deletions

View File

@ -106,11 +106,8 @@ Preprocessor::~Preprocessor() {
} }
// Free any macro definitions. // Free any macro definitions.
for (MacroInfoChain *I = MIChainHead ; I ; ) { for (MacroInfoChain *I = MIChainHead ; I ; I = I->Next)
MacroInfoChain *Next = I->Next;
I->MI.Destroy(); I->MI.Destroy();
I = Next;
}
// Free any cached macro expanders. // Free any cached macro expanders.
for (unsigned i = 0, e = NumCachedTokenLexers; i != e; ++i) for (unsigned i = 0, e = NumCachedTokenLexers; i != e; ++i)