diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-04-28 21:05:07 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-04-28 21:05:07 +0000 |
commit | 1e1728536a4a453c81fad90d94b3b3c0f9dd5897 (patch) | |
tree | 48f63929909953c8b4cf852133a7e99156e48c3b /clang/lib/Lex/Preprocessor.cpp | |
parent | 2fbc4e5c4942a3a816c2d13913db0ee65990f448 (diff) | |
download | bcm5719-llvm-1e1728536a4a453c81fad90d94b3b3c0f9dd5897.tar.gz bcm5719-llvm-1e1728536a4a453c81fad90d94b3b3c0f9dd5897.zip |
Refactor to make MacroState ownership and lifetime clearer.
llvm-svn: 236032
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r-- | clang/lib/Lex/Preprocessor.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index 80715d54807..92ab2af1921 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/lib/Lex/Preprocessor.cpp @@ -142,9 +142,6 @@ Preprocessor::Preprocessor(IntrusiveRefCntPtr<PreprocessorOptions> PPOpts, Preprocessor::~Preprocessor() { assert(BacktrackPositions.empty() && "EnableBacktrack/Backtrack imbalance!"); - for (auto &Macro : Macros) - Macro.second.destroy(); - IncludeMacroStack.clear(); // Destroy any macro definitions. |