https://github.com/kazutakahirata created https://github.com/llvm/llvm-project/pull/141358
Note that getTimestampFilename just constructs a file name, so it's mostly a "pure" function except possible heap allocation. >From c30f6c7c2ebe80ad84f36fd9e4172f5323779a97 Mon Sep 17 00:00:00 2001 From: Kazu Hirata <k...@google.com> Date: Fri, 23 May 2025 22:43:54 -0700 Subject: [PATCH] [Serialization] Remove an unused local variable (NFC) Note that getTimestampFilename just constructs a file name, so it's mostly a "pure" function except possible heap allocation. --- clang/lib/Serialization/ModuleCache.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/clang/lib/Serialization/ModuleCache.cpp b/clang/lib/Serialization/ModuleCache.cpp index 4ae49c4ec9a05..f42bdc16d815d 100644 --- a/clang/lib/Serialization/ModuleCache.cpp +++ b/clang/lib/Serialization/ModuleCache.cpp @@ -34,8 +34,6 @@ class CrossProcessModuleCache : public ModuleCache { } std::time_t getModuleTimestamp(StringRef ModuleFilename) override { - std::string TimestampFilename = - serialization::ModuleFile::getTimestampFilename(ModuleFilename); llvm::sys::fs::file_status Status; if (llvm::sys::fs::status(ModuleFilename, Status) != std::error_code{}) return 0; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits