[PATCH] D18422: Add Cache Pruning support

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Sat May 14 09:56:21 PDT 2016


> On May 14, 2016, at 8:36 AM, NAKAMURA Takumi <geek4civic at gmail.com> wrote:
> 
> chapuni added a subscriber: chapuni.
> 
> ================
> Comment at: lib/Support/CachePruning.cpp:44
> @@ +43,3 @@
> +  if (sys::fs::status(TimestampFile, FileStatus)) {
> +    if (errno == ENOENT) {
> +      // If the timestamp file wasn't there, create one now.
> ----------------
> Don't use errno. Fixed in r269565.

Thanks!

Note: this was copy/pasted from clang `void pruneModuleCache()` in lib/Frontend/CompilerInstance.cpp, I imagine we should fix it the same way?

-- 
Mehdi



More information about the llvm-commits mailing list