| commit | 5d240d07f240a04c480341eba2d4ac8a177682be | [log] [tgz] |
|---|---|---|
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Sat Aug 23 12:12:06 2008 +0000 |
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Sat Aug 23 12:12:06 2008 +0000 |
| tree | 1585a9ae410f0c31239bb85a25189a050847bfd3 | |
| parent | bd024c7fdbc921af3a16c263f1ac0d8a8149edb0 [diff] [blame] |
Add a safety check. Make sure there's no "dangling" backtrack position when Preprocessor is destroyed. llvm-svn: 55236
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index a4ff8bb..18b106a 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/lib/Lex/Preprocessor.cpp
@@ -84,6 +84,8 @@ } Preprocessor::~Preprocessor() { + assert(BacktrackPositions.empty() && "EnableBacktrack/Backtrack imbalance!"); + // Free any active lexers. delete CurLexer;