We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd14ffe commit ac45c17Copy full SHA for ac45c17
clang/lib/Tooling/DependencyScanning/InProcessModuleCache.cpp
@@ -97,9 +97,7 @@ class InProcessModuleCache : public ModuleCache {
97
return Entry->Timestamp;
98
}();
99
100
- std::time_t Expected = 0;
101
- std::time_t Now = llvm::sys::toTimeT(std::chrono::system_clock::now());
102
- Timestamp.compare_exchange_weak(Expected, Now);
+ Timestamp.store(llvm::sys::toTimeT(std::chrono::system_clock::now()));
103
}
104
105
InMemoryModuleCache &getInMemoryModuleCache() override { return InMemory; }
0 commit comments