summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-08-11 21:29:24 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-08-11 21:29:24 +0000
commit23430ccb042f11eda205c390d4c2a0d07d08b2e6 (patch)
tree8753c0e6cd148fe8b0bd60064a55ff3d6da6893f /clang/lib/Lex/Preprocessor.cpp
parentbe4b5171d3663eaee01823c33148de081ffe9e80 (diff)
downloadbcm5719-llvm-23430ccb042f11eda205c390d4c2a0d07d08b2e6.tar.gz
bcm5719-llvm-23430ccb042f11eda205c390d4c2a0d07d08b2e6.zip
unique_ptr-ify FileSystemStatCache::setNextStatCache
And in the process, discover that FileManager::removeStatCache had a double-delete when removing an element from the middle of the list (at the beginning or the end of the list, there was no problem) and add a unit test to exercise the code path (which successfully crashed when run (with modifications to match the old API) without this patch applied) llvm-svn: 215388
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r--clang/lib/Lex/Preprocessor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp
index ab11fabbbce..fd0e48c66c8 100644
--- a/clang/lib/Lex/Preprocessor.cpp
+++ b/clang/lib/Lex/Preprocessor.cpp
@@ -27,6 +27,7 @@
#include "clang/Lex/Preprocessor.h"
#include "clang/Basic/FileManager.h"
+#include "clang/Basic/FileSystemStatCache.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Basic/TargetInfo.h"
#include "clang/Lex/CodeCompletionHandler.h"
OpenPOWER on IntegriCloud