commit | dd0e1e8d14cc7388ae02b7d93373a9baa4db2aad | [log] [tgz] |
---|---|---|
author | David Blaikie <dblaikie@gmail.com> | Sun Aug 10 16:57:11 2014 +0000 |
committer | David Blaikie <dblaikie@gmail.com> | Sun Aug 10 16:57:11 2014 +0000 |
tree | 5526503951475cdd89a9de6be9e40026927db971 | |
parent | 2721c32e47d7dd20fd9b3b42ff19998d5f827443 [diff] [blame] |
unique_ptr-ify FileSystemStatCache::takeNextStatCache llvm-svn: 215318
diff --git a/clang/lib/Basic/FileManager.cpp b/clang/lib/Basic/FileManager.cpp index 9421032..94bd3f8 100644 --- a/clang/lib/Basic/FileManager.cpp +++ b/clang/lib/Basic/FileManager.cpp
@@ -86,7 +86,7 @@ if (StatCache.get() == statCache) { // This is the first stat cache. - StatCache.reset(StatCache->takeNextStatCache()); + StatCache = StatCache->takeNextStatCache(); return; }