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 | b865f7e025539adce4f4219cc5bc3a54f773503e (patch) | |
tree | cdfaf97493432620b7e670922ae8fcdba632864c /clang/lib/Lex/Preprocessor.cpp | |
parent | f9c02e15c4481bd7b75f645f3512201928d95f4a (diff) | |
download | bcm5719-llvm-b865f7e025539adce4f4219cc5bc3a54f773503e.tar.gz bcm5719-llvm-b865f7e025539adce4f4219cc5bc3a54f773503e.zip |
Simplify loop. No functionality change.
llvm-svn: 116861
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r-- | clang/lib/Lex/Preprocessor.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index 9a695004c92..a0782aa8681 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/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) |