[cfe-commits] r116861 - /cfe/trunk/lib/Lex/Preprocessor.cpp
Ted Kremenek
kremenek at apple.com
Tue Oct 19 14:30:11 PDT 2010
Author: kremenek
Date: Tue Oct 19 16:30:11 2010
New Revision: 116861
URL: http://llvm.org/viewvc/llvm-project?rev=116861&view=rev
Log:
Simplify loop. No functionality change.
Modified:
cfe/trunk/lib/Lex/Preprocessor.cpp
Modified: cfe/trunk/lib/Lex/Preprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Preprocessor.cpp?rev=116861&r1=116860&r2=116861&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/Preprocessor.cpp (original)
+++ cfe/trunk/lib/Lex/Preprocessor.cpp Tue Oct 19 16:30:11 2010
@@ -106,11 +106,8 @@
}
// Free any macro definitions.
- for (MacroInfoChain *I = MIChainHead ; I ; ) {
- MacroInfoChain *Next = I->Next;
+ for (MacroInfoChain *I = MIChainHead ; I ; I = I->Next)
I->MI.Destroy();
- I = Next;
- }
// Free any cached macro expanders.
for (unsigned i = 0, e = NumCachedTokenLexers; i != e; ++i)
More information about the cfe-commits
mailing list