diff options
author | Manuel Klimek <klimek@google.com> | 2012-07-31 13:56:54 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2012-07-31 13:56:54 +0000 |
commit | 98be86038b1e891a05583061c55dfa974150eb2c (patch) | |
tree | d041d4555a73126098095ee3d756390ffcd203b3 /lib/Tooling/Tooling.cpp | |
parent | 94be8ea90795d00fe2a97fea9a9a727911a70997 (diff) |
Fixes a segfault in Tooling when using pch's:
Clear the FileManager's stat cache in between running
translation units, as the stat cache loaded from a pch
is only valid for one compiler invocation.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161047 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Tooling/Tooling.cpp')
-rw-r--r-- | lib/Tooling/Tooling.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Tooling/Tooling.cpp b/lib/Tooling/Tooling.cpp index 5d41172a91..e93e0c97f7 100644 --- a/lib/Tooling/Tooling.cpp +++ b/lib/Tooling/Tooling.cpp @@ -212,6 +212,7 @@ bool ToolInvocation::runInvocation( const bool Success = Compiler.ExecuteAction(*ScopedToolAction); Compiler.resetAndLeakFileManager(); + Files->clearStatCaches(); return Success; } |