diff options
author | Ted Kremenek <kremenek@apple.com> | 2010-10-19 21:30:11 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2010-10-19 21:30:11 +0000 |
commit | 2a6b03af69cb25b15fc9488ff593e427d3214217 (patch) | |
tree | a9e757289acbd0a9c1ee44aae52491d8ec66b07e /lib/Lex/Preprocessor.cpp | |
parent | 7cffb55ef5845f86b41b83c332e4b453ee4dcb16 (diff) |
Simplify loop. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@116861 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r-- | lib/Lex/Preprocessor.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp index 9a695004c9..a0782aa868 100644 --- a/lib/Lex/Preprocessor.cpp +++ b/lib/Lex/Preprocessor.cpp @@ -106,11 +106,8 @@ Preprocessor::~Preprocessor() { } // 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) |