[clang] [Serialization] Remove an unused local variable (NFC) (PR #141358)
Kazu Hirata via cfe-commits
cfe-commits at lists.llvm.org
Sat May 24 08:28:00 PDT 2025
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 <kazu at 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;
More information about the cfe-commits
mailing list